ASPxClientBeginCallbackEventArgs.command Property

Gets a command name that identifies which client action initiated a callback.

Declaration

command: string

Property Value

Type Description
string

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.

ASPxGantt callback commands
  • UPDATEDATA
  • DIALOG
  • REFRESH
  • CUSTOMCALLBACK
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
ASPxTreeList callback commands
  • Expand
  • Collapse
  • Pager
  • CustomDataCallback
  • MoveColumn
  • Sort
  • Dummy
  • ExpandAll
  • CollapseAll
  • CustomCallback
  • StartEdit
  • UpdateEdit
  • CancelEdit
  • MoveNode
  • DeleteNode
  • StartEditNewNode
  • GetNodeValues
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.

Example

The following example illustrates how to use the command property.

Web Forms approach:

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

MVC approach:

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

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