I have a AdvancedDataGrid which has groupings and summary fields.

Also I have filter function. When my filter changed I call:

overviewGrid.hierarchicalCollectionView.filterFunction = filterDataXml;

overviewGrid.hierarchicalCollectionView.refresh();

It works fine but Summaries are not refreshed. So I've created a summary
function as well which calculate totals, only from rows which are passed
the filter. But I need to call

gc.refresh(); //gc is ID of GroupCollection I'm passing to the grid

to see the change on a screen, which is not good, because it collapse
all opened nodes. I could work around this by saving open nodes and
reopen them, but here is another problem:

I do this when filter is changed:

overviewGrid.hierarchicalCollectionView.filterFunction = filterDataXml;

gc.refresh();

I see number of rows is changed, so filter function works, but summary
shows the old value. I change filter again (call the same code), and in
summary I see total of the previous filter. No matter how much I change
the filter I always see Total (summary) of a previous filter
combination.

Could somebody help my to understand how to re-calculate summary when
filter function filters out some rows from AdvancedDataGrid?

Some examples would be helpful.

Thanks in advance:

Eugene S.

Reply via email to