Skip to main content
Tab

ASPxGridView.SettingsCookies Property

Provides access to the ASPxGridView cookie and layout settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

Declaration

public ASPxGridViewCookiesSettings SettingsCookies { get; }

Property Value

Type Description
ASPxGridViewCookiesSettings

An ASPxGridViewCookiesSettings object that contains the control’s cookie and layout settings.

Remarks

The SettingsCookies property allows you to specify cookie and layout storing settings.

  • Cookies

    If the browser supports cookies, the ASPxGridView can persist its state (sorting, grouping, filter criteria, column layout, etc.) in cookies. Otherwise, information about the control’s state is lost between different requests from the client for the same page. Use the SettingsCookies property to specify which information on the ASPxGridView state can be saved to cookies. To enable cookies, set the ASPxGridCookiesSettings.Enabled property to true.

  • Layout Storing

    Use the SettingsCookies to specify which information on the ASPxGridView layout will be saved when handling the ASPxGridBase.ClientLayout event or calling the ASPxGridBase.SaveClientLayout method.

Note

The grid layout is restored from cookies only on the first page load or after a postback. The grid doesn’t apply a new layout state from cookies during callbacks. Therefore, it’s not possible to apply the new cookies state modified on the client side via ASPxClientUtils.DeleteCookie to the grid without performing a full page reload.

See Also