This is a migrated thread and some comments may be shown as answers.

Saving Column Positions as part of Rad

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 24 Sep 2008, 06:06 PM
I am looking at the example that talks about how to save grid state on the server: Saving grid settings on a per user basis.  This works fine except the column positions are not saved.  I've enabled the resizing options in the grid..

<

Resizing ResizeGridOnColumnResize="true" AllowColumnResize="true"/>


This causes resize to occur on the client but unless I post back the col positions are not saved.  Because my column view state is disabled, I am performing server order changes on the server.  Is there something similar for column resize?  How can I force a post back to so that the column sizes are stored when changed?


Thanks,

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 26 Sep 2008, 12:44 PM
Hi Randy,

You can handle the OnColumnResized client-side event of RadGrid and invoke explicitly postback/callback. Then you can handle the RaisePostBackEvent or the AjaxRequest event if you grid is ajaxified with RadAjax and save the desired data there.

Find more information about RadAjax in the following resources:
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html
http://www.telerik.com/help/aspnet-ajax/ajxaddajaxrequesttoclientevent.html
http://www.telerik.com/help/aspnet-ajax/ajxonajaxrequest.html

Let us know if you need further directions/help.

Greetings,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or