Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Handling grouping state

$
0
0
Version v8.3p_2013-06-04

Situation: A TabSet with three tabs, using the same ListGrid in each pane, simply changing the data that's supposed to be displayed in each pane. In each case, the records are being grouped by just one field called "group". When the user views a different tab pane, and then comes back, the grouping information is different, so it needs to be restored.

Issue: ListGrid.getGroupState() and ListGrid.setGroupState() only work if the records haven't changed. The records are constantly changing.

Goal: I need to be able to save the grouping state, such as, which groups are open or closed, and then restore them when the user comes back to the respective tab pane. I was able to stop them from closing on their own by using ungroup() and then groupBy() on the run, but that's not enough... I must be able to open or close specific groups on the run. I tried looking into the object that's returned by getGroupState(), but it seems to only hold information about the field itself and not its value.

How would you guys approach this?

In advance, thank you so much for your time and attention.

Viewing all articles
Browse latest Browse all 4756

Trending Articles