Skip to main content
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET 6.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.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Web

Declaration

bool SaveStateInCookies { get; set; }

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.

See Also