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.
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" />
...
</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()