Back to Devexpress

TreeListPersistentLayoutColumn Class

blazor-devexpress-dot-blazor-c30e84f2.md

latest4.0 KB
Original Source

TreeListPersistentLayoutColumn Class

Contains information about layout settings for columns.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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 InformationTreeList Column ParameterTreeListPersistentLayoutColumn Property
Column typeA column type defined in the markup: data, band, command, or selection.LayoutColumn.ColumnType
A data field nameDxTreeListColumn.FieldNameLayoutColumn.FieldName
Sort indexDxTreeListColumn.SortIndexLayoutColumn.SortIndex
Sort directionDxTreeListColumn.SortOrderLayoutColumn.SortOrder
PositionDxTreeListColumn.VisibleIndexLayoutColumn.VisibleIndex
VisibilityDxTreeListColumn.VisibleLayoutColumn.Visible
WidthDxTreeListColumn.WidthLayoutColumn.Width

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

LayoutAutoSavingFires when the grid’s layout changes.LayoutAutoLoadingFires when the DxGrid component is initialized and starts to load its layout.

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

SaveLayout()Saves information about the DxGrid‘s layout.LoadLayout(GridPersistentLayout)Restores the DxGrid layout.

Implements

IEquatable<TreeListPersistentLayoutColumn>

Inheritance

Object DevExpress.Blazor.Grid.Internal.GridPersistentLayoutColumnBase TreeListPersistentLayoutColumn

See Also

TreeListPersistentLayoutColumn Members

DevExpress.Blazor Namespace