Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Grid column resize event
posted

Dear Sir:

 I used the ultrawebgrid control and i have a problem. i tried to write a cookie for remember the setting in the client side's col order and width during the page load. It is fine for the col order but not for col width. it is because the re-order the column the control will fire a event and do postback but column size do not. i wanna to know is there any setting to let me to a postback/client side event for grid column resize? i found the server side event which called "ColumnSizeChange" but i didn't find any sample or reference to it.

best regards

from Edmond

  • 28464
    Suggested Answer
    posted

    Hello Edmond,

    Indeed, there is a server side column ColumnSizeChange which fires after a column size has changed, e.g.

    protected void UltraWebGrid1_ColumnSizeChange(object sender, Infragistics.WebUI.UltraWebGrid.ColumnEventArgs e)
        {

        }

    There is a tricky part to it though -- the event will not happen automatically on each resize. If you want this to happen, you can handle a client-side event -- AfterColumnResized and then call igtbl_doPostBack() from there. There is a good thread on this topic here (the posts by Alex Kartavov are especially useful)

    http://forums.infragistics.com/forums/p/16910/61438.aspx#61438