The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V19.1
19.2 (EAP/Beta)
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxClientEndCallbackEventArgs.command Property

Gets a command name that identifies which client action forced a callback to occur.

Declaration

command: string

Property Value

Type Description
string

Specifies the name of the command which initiated a callback.

Remarks

The following command names are used by different DevExpress web controls.

ASPxGridView callback commands

Refer to the ASPxClientGridViewCallbackCommand class to get client constants that contain the names of the GridView's default commands executed through callbacks.

ASPxCardView callback commands

Refer to the ASPxClientCardViewCallbackCommand class to get client constants that contain the names of the Card View's default commands executed through callbacks.

ASPxVerticalGrid callback commands

Refer to the ASPxClientVerticalGridCallbackCommand class to get client constants that contain the names of the VerticalGrid's default commands executed through callbacks.

ASPxTreeList callback commands
  • Expand
  • Collapse
  • Pager
  • CustomDataCallback
  • MoveColumn
  • Sort
  • Dummy
  • ExpandAll
  • CollapseAll
  • CustomCallback
  • StartEdit
  • UpdateEdit
  • CancelEdit
  • MoveNode
  • DeleteNode
  • StartEditNewNode
  • GetNodeValues
ASPxDataView callback commands
  • PAGERCLICK
  • CUSTOMCALLBACK
ASPxFileManager callback commands

Refer to the ASPxClientFileManagerCallbackCommand class to get client constants that contain the names of the File Manager's default commands executed through callbacks.

ASPxScheduler callback commands
  • SAVT
  • SVGT
  • NVBTN
  • MNUAPT
  • MNUVIEW
  • EDTFRMSHOW
  • EDTFRMSHOWSID
  • APTSAVE
  • APTCANCEL
  • APTDEL
  • APTSCHANGE
  • APTSCOPY
  • APTDATA
  • INPLACESHOW
  • INPLACESAVE
  • INPLACEFORM
  • GOTODATEFORM
  • GOTODATEFORMCANCEL
  • GOTODATE
  • RECURAPTDELETE
  • RECURAPTDELETECANCEL
  • RECURAPTEDIT
  • RECURAPTEDITCANCEL
  • MOREBTN
  • GOTODAY
  • BACK
  • FORWARD
  • TZI
  • RAISEMOREBTN
  • NAVRESFIRST
  • NAVRESPREVPAGE
  • NAVRESPREV
  • NAVRESNEXT
  • NAVRESNEXTPAGE
  • NAVRESLAST
  • RESINC
  • RESDEC
  • NAVSPECRES
  • REFRESH
  • OFFSETVISI
  • SETVISDAYS
  • PROCESSREMINDER
  • DSMSREMINDER
  • DSMSALLREMINDERS
  • SNZREMINDERS
  • SNZALLREMINDERS
  • CLSREMINDERSFRM
  • CSTREMINDERSACT

Example

The following example illustrates how to use the command property.

WebForms approach:


<dx:ASPxGridView runat="server" ID="ASPxGridView1" ... >
<ClientSideEvents EndCallback="OnEndCallback" /> 
...
</dx:ASPxGridView>

MVC approach:


@Html.DevExpress().GridView(settings => {
    settings.Name = "GridView1";
    settings.KeyFieldName = "ID";

    settings.ClientSideEvents.EndCallback = "function(s, e) { if (e.command == 'ADDNEWROW') {
        s.Refresh(); } }";
}).Bind(Model).GetHtml() 
See Also