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

Show number of records in grid after record is created

$
0
0
I have a ListGrid with some sort of record count label that uses getTotalRows() to show the number of records. In dataArrived() I update this label. This all works but only when all data is fetched. I use an external form to create new records. This visually updates the grid with the new record, but doesn't update the record count label (because dataArrived is not called).

So basically, which (hook) method is called when the grid's updates its data whenever a form that uses the same data source instance creates a record. And is there a (hook) method (maybe the same) when I call removeData() on the grid? I can of course overwrite removeData() myself so that it also updates the record count.

Viewing all articles
Browse latest Browse all 4756

Trending Articles