IModelListViewStateStore.SaveStateInCookies Property
Specifies whether the List View settings are persisted in cookies when the browser cookie storage is enabled.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v24.1.dll
NuGet Package: DevExpress.ExpressApp.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the List View settings are persisted in cookies when the browser cookie storage is enabled; otherwise, false. |
Remarks
This property is considered in XAF ASP.NET Web Forms applications for List Views represented by the ASPxGridListEditor, ASPxTreeListEditor and ASPxSchedulerListEditor. When the SaveStateInCookies and IModelOptionsStateStore.SaveListViewStateInCookies properties are set to true, you can rearrange the List Editor’s columns of a List View, and the next time you start the application, this order will be restored.
Important
It is recommended to store the application model differences in the database instead of cookies. List View settings may require a lot of space and the browser’s cookie size limit may be exceeded (especially, when you use highly configurable List Editors with lots of options like ASPxPivotGridListEditor and ASPxChartListEditor). If the size is exceeded, settings are not persisted. Additionally, cookie storage produces extra traffic on each request that may lead to performance issues.