ASPxClientGridView.ColumnResized Event
Occurs after a column’s width has been changed by an end-user.
Declaration
ColumnResized: ASPxClientEvent<ASPxClientGridViewColumnProcessingModeEventHandler<ASPxClientGridView>>
Event Data
The ColumnResized event's data class is ASPxClientGridViewColumnProcessingModeEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
column | Gets a grid column related to the event. |
processOnServer | Specifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs. |
Remarks
If the ASPxGridViewCookiesSettings.StoreColumnsWidth property is set to true
, the grid requires an additional round trip to the server to persist column widths in cookies. To do this, handle the ColumnResized event as shown in the example below.
Example
<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>
See Also