Hello
Does the igGrid support seriaization of user preferences? Ie, selected groupings, hidden columns, sorting etc?
Thanks,
Patrick
Hi Patrick,Generally speaking, yes, but it depends on the feature:for example, you can get the state of sorted columns by checking:
$("#grid1").igGridSorting("option", "columnSettings")
(you can apply it on the http://samples.infragistics.com/jquery/grid/sorting-column-settings sample)This will give you a JSON of the state of each column (whether it's sorted, if it is, is what direction and so on).
PatrickCBrown2 said:selected grouping
$("#grid1").igGridGroupBy("groupByColumns");
(usable on http://samples.infragistics.com/jquery/grid/enable-groupby-feature)Hidden columns are trickier - there's a "hidden" flag for each column so you have to retrieve the grid's columns like so:
$("#grid1").igGrid("option", "columns"); //The 'hidden' flag for the 1st column $("#grid1").igGrid("option", "columns")[0].hidden
(usable on the sample http://samples.infragistics.com/jquery/grid/column-hiding-on-initialization) All results will be in JSON format so there shouldn't be need to serialize them further.However, if you need anything else in specific, please let us know.Cheers,Borislav