We display the count of records in the grid when a user filters. This code is called after listGrid.filterData (we are using local cached date).
For large sets of data (1000 records), the grid is busy grouping so the record counts refect the old groupTree.
I need a way to observe when the groupTree has changed so I can update my record counts. Observing getGroupState does not work, as it returns before the grouping is done:
listGrid.observe(listGrid, "groupStateChanged", "some method");
My method executes, but before grouping is done.
I tried with this as well, it doesnt work at all:
listGrid.observe(listGrid.groupTree, "dataChanged", "some method");
My method does not execute at all.
For large sets of data (1000 records), the grid is busy grouping so the record counts refect the old groupTree.
I need a way to observe when the groupTree has changed so I can update my record counts. Observing getGroupState does not work, as it returns before the grouping is done:
listGrid.observe(listGrid, "groupStateChanged", "some method");
My method executes, but before grouping is done.
I tried with this as well, it doesnt work at all:
listGrid.observe(listGrid.groupTree, "dataChanged", "some method");
My method does not execute at all.
Comment