Skip to main content
All docs
V24.2

ASPxClientTreeListCellSelectionChangingEventArgs.cellInfo Property

Gets information about the cell whose selection was changed.

Declaration

cellInfo: ASPxClientTreeListCellInfo

Property Value

Type Description
ASPxClientTreeListCellInfo

Information about the cell.

Remarks

Web Forms:

<dx:ASPxTreeList ID="TreeList" runat="server" ...>
    <ClientSideEvents 
        CellSelectionChanging="onCellSelectionChange" />
    <SettingsEditing Mode="Batch">
        <BatchEditSettings EnableMultipleCellSelection="True" />
    </SettingsEditing>
    <Columns>
      <dx:TreeListComboBoxColumn 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()
See Also