Skip to main content
A newer version of this page is available. .

ASPxClientBeginCallbackEventArgs.command Property

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

Declaration

command: string

Property Value

Type Description
string

A string value that represents the name of the command which initiated a callback.

Remarks

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

ASPxCardView

  • ADDNEWROW
  • APPLYCOLUMNFILTER
  • APPLYFILTER
  • APPLYHEADERCOLUMNFILTER
  • APPLYSEARCHPANELFILTER
  • CANCELEDIT
  • CLOSEFILTERCONTROL
  • CUSTOMBUTTON
  • CUSTOMCALLBACK
  • CUSTOMVALUES
  • DELETEROW
  • FILTERPOPUP
  • FOCUSEDROW
  • GOTOPAGE
  • NEXTPAGE
  • PAGERONCLICK
  • PAGEROWVALUES
  • PREVPAGE
  • REFRESH
  • ROWVALUES
  • SELECTION
  • SELECTROWS
  • SELECTROWSKEY
  • SELFIELDVALUES
  • SETFILTERENABLED
  • SHOWFILTERCONTROL
  • SORT
  • STARTEDIT
  • UPDATEEDIT

ASPxDataView

  • PAGERCLICK
  • CUSTOMCALLBACK

ASPxFileManager

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

ASPxGridView

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

ASPxScheduler

  • 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

  • Expand
  • Collapse
  • Pager
  • CustomDataCallback
  • MoveColumn
  • Sort
  • Dummy
  • ExpandAll
  • CollapseAll
  • CustomCallback
  • StartEdit
  • UpdateEdit
  • CancelEdit
  • MoveNode
  • DeleteNode
  • StartEditNewNode
  • GetNodeValues

ASPxVerticalGrid

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.

WebForms 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