Announcement

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

    Grid does not update Details fields when updating record

    Hi,

    I have a grid Grid with some records displaying details, i.e. it uses the setCanExpandRecords(true) and the SetExpansionMode(ExpansionMode.DETAILS) options.
    The grid is populated by a datasource. Some records are updated programmatically from within the application.
    This is done by ds.updateData(new xyRecord(...));
    The Grid updates just fine, however, if the record is expanded (i.e. the details are visible) the details fields are updated only after closing and reopening them.
    Is there a way to update the details instantly as well?

    Thanks

    #2
    This is a bug. A workaround would be to use DataChanged to figure out that the DetailViewer must be stale and expand/collapse the record to refresh it.

    Comment


      #3
      This has now been fixed in 3.1d builds.

      Comment


        #4
        I have seen this problem before.
        Not realizing it was a bug, I have been calling listGrid.markForRedraw () after calling listGrid.updateData ().
        That does update the record on the screen with 3.0, if upgrading to the nighlies is not an option for you...

        Comment

        Working...
        X