ASPxHtmlEditor.ClientLayout Event
Enables you to save and restore the previously saved layout of the ASPxHtmlEditor.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Event Data
The ClientLayout event's data class is ASPxClientLayoutArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
LayoutData | Gets or sets the layout data. |
LayoutMode | Indicates whether a control’s layout should be saved or restored. |
Remarks
Handle the ClientLayout event to save and restore the ASPxHtmlEditor‘s layout from a data store.
Save Layout
The event parameter’s ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Saving. The ASPxClientLayoutArgs.LayoutData property contains the ASPxHtmlEditor‘s current layout that should be saved, for example, to a database.
Restore Layout
The ASPxClientLayoutArgs.LayoutMode property returns ClientLayoutMode.Loading. Read the ASPxHtmlEditor‘s layout data from a data store, and assign it to the ASPxClientLayoutArgs.LayoutData property.