.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

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.v20.2.dll

Declaration

bool SaveStateInCookies { get; set; }
Property SaveStateInCookies As Boolean

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 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.

See Also