Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    DxTreeListEditor.TreeListModel Property

    Exposes members of the underlying DxTreeList class.

    Namespace: DevExpress.ExpressApp.Blazor.Editors

    Assembly: DevExpress.ExpressApp.Blazor.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.Blazor

    Declaration

    public DxTreeListModel TreeListModel { get; }

    Property Value

    Type Description
    DevExpress.ExpressApp.Blazor.Editors.Models.DxTreeListModel

    A DevExpress.ExpressApp.Blazor.Editors.Models.DxTreeListModel object that you can use to access DxTreeList settings.

    Remarks

    Use the DxTreeListEditor.TreeListModel property to access the Tree List component properties.

    The following code snippet demonstrates a controller in an XAF ASP.NET Core Blazor project that changes the ColumnResizeMode property value:

    using DevExpress.ExpressApp;
    using DevExpress.ExpressApp.Blazor.Editors;
    
    namespace YourSolutionName.Blazor.Server.Controllers;
    public class ColumnResizeModeViewController : ViewController<ListView> {
        protected override void OnViewControlsCreated() {
            base.OnViewControlsCreated();
            if (View.Editor is DxTreeListEditor treeListEditor) {
                treeListEditor.TreeListModel.ColumnResizeMode =
                    DevExpress.Blazor.TreeListColumnResizeMode.ColumnsContainer;
            }
        }
    }
    
    See Also