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

TreeListColumnEditorEventArgs.Editor Property

Gets the editor currently being processed.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll

Declaration

public ASPxEditBase Editor { get; }

Property Value

Type Description
ASPxEditBase

A ASPxEditBase descendant that represents the processed editor.

Example

This example shows how to prevent end-users from changing the Department of root nodes. The ASPxTreeList.CellEditorInitialize is raised when the ASPxTreeList is switched to edit mode, and enables you to initialize cell editors. If the edited node resides within the first nesting level and the processed editor corresponds to the Department column, the editor is disabled.

The image below shows the result:

exCellEditorInitialize

protected void ASPxTreeList1_CellEditorInitialize(object sender,
TreeListColumnEditorEventArgs e) {
    if (ASPxTreeList1.FindNodeByKeyValue(e.NodeKey).Level == 1 && 
         e.Column.FieldName == "Department")
        e.Editor.Enabled = false;
}
See Also