DxTreeListEditor.TreeListCommandActionColumnModels Property
Stores DxTreeList command column models.
Namespace: DevExpress.ExpressApp.Blazor.Editors
Assembly: DevExpress.ExpressApp.Blazor.v25.1.dll
NuGet Package: DevExpress.ExpressApp.Blazor
Declaration
Property Value
Type | Description |
---|---|
IList<DevExpress.ExpressApp.Blazor.Editors.Models.DxTreeListCommandColumnModel> | A set of DxTreeList command column models. |
Remarks
Use this property to customize the TreeListCommandActionColumnModels
collection:
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Blazor.Components.Models;
using DevExpress.ExpressApp.Blazor.Editors;
using DevExpress.ExpressApp.Blazor.Editors.ActionControls;
using DevExpress.ExpressApp.Blazor.Editors.Models;
namespace MySolution.Blazor.Server.Controllers;
public class ColumnsOrderController : ViewController<ListView> {
protected override void OnViewControlsCreated() {
base.OnViewControlsCreated();
if(View.Editor is DxTreeListEditor treeListEditor) {
// Specify the index of a column
treeListEditor.TreeListCommandActionColumnModels.FirstOrDefault(c => c.Name == "RecordEdit").VisibleIndex = 3;
}
}
}
See Also