Hi,
I was wondering if this is a known issue where onGroupStateChanged is not called every time? After creating my ListGrid, I used:
onGroupByComplete is called the first time due to grid.setGroupByField() seen above.
I have a button that uses grid.setData() to change the datasource, when the user presses the button. This also has the effect of refreshing the grid. Since grouping was already set, it then correctly groups the data. However, the onGroupByComplete event is never seen again.
After some time I discovered the workaround to call grid.groupBy("Block_Name") in the button click handler after changing the datasource, and then onGroupByComplete event is correctly seen. But this seems unnecessary because the data was already being grouped before doing this, but the callback wasn't working. Is this a framework bug? Thanks for your time.
I was wondering if this is a known issue where onGroupStateChanged is not called every time? After creating my ListGrid, I used:
Code:
grid.setGroupByField("Block_Name"); grid.addGroupByCompleteHandler(new GroupByCompleteHandler(){ @Override public void onGroupByComplete(GroupByCompleteEvent event) {
I have a button that uses grid.setData() to change the datasource, when the user presses the button. This also has the effect of refreshing the grid. Since grouping was already set, it then correctly groups the data. However, the onGroupByComplete event is never seen again.
After some time I discovered the workaround to call grid.groupBy("Block_Name") in the button click handler after changing the datasource, and then onGroupByComplete event is correctly seen. But this seems unnecessary because the data was already being grouped before doing this, but the callback wasn't working. Is this a framework bug? Thanks for your time.
Comment