I'd like to be able to hide grid columns and then save the settings to a user profile. I can hide the columns on the client side just fine, but then on the next postback, the columns are back. Is it possible to persist the visible/hidden columns? I also would like this to be done without a postback.
Thanks,
Yes it would be very nice if that feature of being able to save/load the grid state was a part of the grid.
Yes, it is a good point, we do think on making something publicly exposed for that. You can also review this forum thread for additional ideas for saving / loading grid state (although a little different from your scenario which includes tracking client-side changes to the server) - this may provide additional ideas:
http://forums.infragistics.com/forums/p/9885/45543.aspx#45543
I will do my best to have this idea (auto track client side changes) promoted for future releases.
Yeah, I was hoping I didn't have to do that though. It seems this should be included in a future release because it does keep track of the column ordering just fine.
Thank you.
Hello,
I think this is possible, however you will need to write some custom code for that. In the same javascript client side function that you use to hide the column of the grid just update a hidden field
<asp:hiddenfield runat="server" ID="ColumnState" />
document.getElementById("<%= ClientState.ClientID ").value += colIndex + ",";
The on the server, you can parse the string (split by ",") and get the list of columns to be hidden from the server side as well.
Hope this helps.