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
225
How to maintain grouping in XamWebGrid in code behind
posted

I have a logic where I need to

1) clear grouping (done by the user) 

2) store it in a local variable / object

3) do some other operation(s)

4) re-apply the grouping which was applied by the user previously

 

In one liner, its all about storing or maintaing the user defined grouping on the UI and setting it back again when the user comes back on the same tab / page.

can someone provide information on how this can be achieved ?

Parents
No Data
Reply
  • 21382
    posted

    You could look at the grid.GroupBySettings.GroupByColumns collection and see what columns are currently grouped.

     

    That is the collection you would want to modify to add or remove group by actions.

     

    If you are looking at persisting the group by columns across sessions you could use the Persistence Framework (introduced in 10.1).

     

    http://help.infragistics.com/NetAdvantage/Silverlight/2010.1/CLR3.5/?page=Whats_New_Infragistics_Control_Persistence_Framework.html

Children
No Data