GridSettingsBase.ClientLayout Property
Enables you to save and restore the previously saved layout of the extension.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v20.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
ASPxClientLayoutHandler | A ASPxClientLayoutHandler delegate method allowing you to implement custom processing. |
Remarks
Provide implementation of the delegated method to save and restore the grid’s layout from a data store.
Save Layout
The delegated method argument’s ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Saving. The ASPxClientLayoutArgs.LayoutData property contains the grid’s current layout that should be saved, for instance, to a database.
Restore Layout
The ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Loading. Read the grid’s layout data from a data store and assign it to the ASPxClientLayoutArgs.LayoutData property.
Note that there is a peculiarity when using the ClientLayout in custom binding mode. See the GridView Custom Binding Limitations and CardView Custom Binding Limitations topics for more details.