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

Saving grid state on column selection and column resize

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 30 Jun 2010, 06:40 PM
Hello,

I am using one of the example grids with the EnableHeaderContextMenu set to true.  I am also saving the grid state to a database as columns are reordered.  I would like to save the grid state to the database both when the user selects or deselects columns via the header context menu and when the user resizes columns.   I can't figure out which events I can use to capture these actions.  Any help would be much appreciated.

Thanks,
Bob 

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 05 Jul 2010, 12:16 PM
Hello Bob,

I would suggest you to refer to the following help topic which elaborates on this matter. Test the provided approaches and let us know if this helps.


Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bob
Top achievements
Rank 1
answered on 06 Jul 2010, 10:05 PM
Hi Maria,

Thank you very much for your response.  I may not have been clear in my original post.  I am not having trouble persisting the grid state in the database.  I have that part working.  What I would like to do is have the grid state saved when the user makes changes to the selected columns in the grid's context menu.  I can't seem to see how to trigger a postback when that happens.  Are there any methods availalbe to do this?

Thanks,
Bob
0
Accepted
Maria Ilieva
Telerik team
answered on 09 Jul 2010, 09:55 AM
Hi Bob,

I suggest you to use the OnClientHidden of the RadMenu and force a postback in it to keep the RadGrid state. After that you can persist the saved settings. I hope this will be helpful for start implementing the required functionality.

Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Bob
Top achievements
Rank 1
Share this question
or