TreeViewSettings.ClientLayout Property
Enables you to save and restore the previously saved layout of the TreeView.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public ASPxClientLayoutHandler ClientLayout { get; set; }
#Property Value
Type | Description |
---|---|
ASPx |
A ASPx |
#Remarks
Provide custom implementation of the delegated method to save and restore the TreeView’s layout from a data store.
Save Layout
The method parameter’s ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Saving. The ASPxClientLayoutArgs.LayoutData property contains the TreeView’s current layout that should be saved, for example, to a database.
Restore Layout
The ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Loading. Read the TreeView’s layout data from a data store and assign it to the ASPxClientLayoutArgs.LayoutData property.