Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Show number of records in grid after record is created

    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.

    #2
    Any help would be appreciated...

    Comment


      #3
      You probably want dataChanged()

      Comment


        #4
        Yep, that seems to be working! Thank you very much.

        BTW: I don't see this documented.

        Comment

        Working...
        X