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
Declaration
Property Value
Type | Description |
---|---|
ASPxClientLayoutHandler | A ASPxClientLayoutHandler method to which custom processing is delegated. |
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.