TreeListSettings.ClientLayout Property
Enables you to save and restore the previously saved layout of a TreeList.
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
Handle the ClientLayout event to save and restore the TreeList’s layout from a data store.
Save Layout
The event parameter’s ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Saving. The ASPxClientLayoutArgs.LayoutData property contains the tree list’s current layout that should be saved, for example, to a database.
Restore Layout
The ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Loading. Read the tree list’s layout data from a data store and assign it to the ASPxClientLayoutArgs.LayoutData property. You can also save and restore the tree list’s layout via the MVCxTreeList.SaveClientLayout and MVCxTreeList.LoadClientLayout methods.