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.
Refer to the ASPxClientGridViewCallbackCommand class to get client constants that contain the names of the GridView’s default commands executed through callbacks.
Refer to the ASPxClientCardViewCallbackCommand class to get client constants that contain the names of the Card View’s default commands executed through callbacks.
- UPDATEDATA
- DIALOG
- REFRESH
- CUSTOMCALLBACK
- PAGERCLICK
- CUSTOMCALLBACK
Refer to the ASPxClientFileManagerCallbackCommand class to get client constants that contain the names of the File Manager’s default commands executed through callbacks.
- 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
- Expand
- Collapse
- Pager
- CustomDataCallback
- MoveColumn
- Sort
- Dummy
- ExpandAll
- CollapseAll
- CustomCallback
- StartEdit
- UpdateEdit
- CancelEdit
- MoveNode
- DeleteNode
- StartEditNewNode
- GetNodeValues
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()