ASPxGridViewCookiesSettings.StoreColumnsWidth Property
Gets or sets whether a cookie and layout data contain information on a column’s width.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Store |
---|---|---|
ASP. |
Grid |
|
MVCx |
|
|
ASP. |
ASPx |
|
Grid |
|
#Remarks
When the ASPxGridCookiesSettings.Enabled property is set to true
, the StoreColumnsWidth property specifies whether information on a column’s width is saved to a cookie.
Note
If the Storetrue
, the grid requires an additional round trip to the server to persist column widths in cookies. To do this, handle the ASPx
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
ClientInstanceName="grid">
<SettingsBehavior ColumnResizeMode="NextColumn" />
<SettingsCookies Enabled="True" />
<ClientSideEvents ColumnResized="function(s, e) {
e.processOnServer = true;
}" />
</dx:ASPxGridView>
Additionally, the StoreColumnsWidth property specifies whether information on a column’s width is saved to layout data when handling the ASPxGridBase.ClientLayout event or calling the ASPxGridBase.SaveClientLayout method.