Skip to main content
All docs
V26.1
  • TreeListPersistentLayoutColumn Class

    Contains information about layout settings for columns.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.Grid.v26.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public class TreeListPersistentLayoutColumn :
        GridPersistentLayoutColumnBase,
        IEquatable<TreeListPersistentLayoutColumn>

    Remarks

    The TreeList allows you to save and restore its layout settings that a user can change in the UI. A TreeListPersistentLayout object stores layout settings on the TreeList level. The TreeListPersistentLayout.Columns collection stores layout settings for columns. Each item (a TreeListPersistentLayoutColumn object) includes the following data:

    Saved Information TreeList Column Parameter TreeListPersistentLayoutColumn Property
    Column type A column type defined in the markup: data, band, command, or selection. LayoutColumn.ColumnType
    Data field name DxTreeListColumn.FieldName LayoutColumn.FieldName
    Sort index DxTreeListColumn.SortIndex LayoutColumn.SortIndex
    Sort direction DxTreeListColumn.SortOrder LayoutColumn.SortOrder
    Position DxTreeListColumn.VisibleIndex LayoutColumn.VisibleIndex
    Visibility DxTreeListColumn.Visible LayoutColumn.Visible
    Width DxTreeListColumn.Width LayoutColumn.Width

    Handle the following events to save and restore the TreeList layout automatically:

    LayoutAutoSaving
    Fires when the TreeList layout changes.
    LayoutAutoLoading
    Fires when the DxTreeList component finishes initialization and starts to load its layout.

    To save and restore the TreeList layout on demand (for example, on a button click), call the following methods:

    SaveLayout()
    Saves information about the TreeList layout.
    LoadLayout(TreeListPersistentLayout)
    Restores the TreeList layout.

    Inheritance

    Object
    DevExpress.Blazor.Grid.Internal.GridPersistentLayoutColumnBase
    TreeListPersistentLayoutColumn
    See Also