The requested page is not available for the requested platform. You are viewing the content for Default platform.

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 handler receives an argument of the ASPxClientGridViewColumnProcessingModeEventArgs type. The following properties provide information specific to this event.

Property Description
column Gets a grid column related to the event.
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side.

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.

Examples

<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