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

Hook to detect changes to datasource for a ListGrid

$
0
0
I have the case where I show the row count with the displayed ListGrid. The row count gets updated via a DataArrivedHandler that is added to the ListGrid and in that handler I call "getTotalRows()" to populate the count label displayed on the UI.

That all works very nicely except for the case where a DS operation results in related updates via "addRelatedUpdate" where in some cases will cause new rows to show up in the ListGrid and/or some rows being removed from the ListGrid. When this happens our ListGrid is updated automatically (new rows appear, deleted rows are removed) but my count label does not get updated since I take it that the related updates does not cause data arrived handler to fire?

What would you recommend as the best way to accomplish this (updating the count when the ListGrid rows are changed)?

Is using the DataArrivedHandler OK to use for this in the general case? If so, any suggestions for the related update changes?

Thanks.

SmartClient Version: v9.1p_2014-08-11/Pro Deployment (built 2014-08-11)

Viewing all articles
Browse latest Browse all 4756

Trending Articles