Hi Igor
I wonder if there is a built-in method to (temporarly) store "group by" settings of an iGrid (similar to store sort options).
I allow users to group iGrid rows using the process decribed below:
1) the user has to select a cell (i.e. a column)
2) if the user then presses a "group by" button, the respective column is added to the group object (I add it because the user should be able (but not forced) to perform a multi-level group by, e.g.
Sales
- January
--Company A
--Company B
- February
--Company A
--Company B
Costs
...
or
Company A
- Sales
-- January
--February
- Costs
--January
--February
Company B
...
3) the user has also the possibility to sort and filter the iGrid (the latter leads to hidden rows)
Due to the various filter, sort and group options I want to offer my users and due to the different approaches I use to update the visible rows according to user's choice (sometimes I reload data from my DB, sometimes I change visibility of grid rows), it would be nice to store actual "group by" settings, perform a data reload and then re-apply the group settings (a kind like it works for sorting and column layout).
Is there a way to store group settings? Maybe to keep a disconnected group object that can be re-applied after an ungroup command? (as far as I know a group object is going to be destroyed automatically using the ungroup method and it can't be created as a stand-alone object)
Thanks in advance for a little hint!
Regards,
Marc
Edited by user
2013-12-09T18:27:00Z
|
Reason: format