ASPxClientTreeListCellSelectionChangingEventArgs Class
Contains data for the CellSelectionChanging event.
Declaration
declare class ASPxClientTreeListCellSelectionChangingEventArgs extends ASPxClientCancelEventArgs
Remarks
The ASPxClientTreeListCellSelectionChangingEventArgs
object is used as an argument for the client-side CellSelectionChanging event.
Web Forms:
<dx:ASPxTreeList ID="treeList" runat="server" ...>
<ClientSideEvents
CellSelectionChanging="onCellSelectionChange" />
<SettingsEditing Mode="Batch">
<BatchEditSettings EnableMultipleCellSelection="True" />
</SettingsEditing>
<Columns>
<dx:TreListComboBoxColumn FieldName="CategoryID" Caption="Category Name" />
...
</Columns>
</dx:ASPxTreeList>
function onCellSelectionChange(s, e) {
if (e.cellInfo.column.fieldName == 'CategoryID') {
// your code
e.cancel = true;
}
}
MVC:
@Html.DevExpress().TreeList(settings => {
settings.Name = "treeList";
settings.ClientSideEvents.CellSelectionChanging = "function (s, e) {
if (e.cellInfo.column.fieldName == 'CategoryID') {
// your code
e.cancel = true;
}
}";
settings.Columns.Add("CategoryID");
...
}).Bind(Model).GetHtml()
Inheritance
ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientTreeListCellSelectionChangingEventArgs
See Also