What is the best method for being able to catch that a list grids data has been updated via a call up updateCaches, and get the expansion components data updated? Currently I have to know that the record was updated, and then close and open the expansion component manually to refresh the component.
Announcement
Collapse
No announcement yet.
X
-
Since you are calling updateCaches(), you have the new Record data in hand and can use methods like RecordList.find() to locate the corresponding record in the grid.
You can then use getCurrentExpansionComponent() to retrieve any currently visible expansion component and update it - no need to collapse and re-expand.
-
You haven't mentioned anything about what the expansion component is.
If the expansion component is something like a ListGrid or DynamicForm it's going to react to the change just like those components do when they are not used as expansionComponents.
If it's something else, or is not set up for automatic cache sync (no DataSource, or a grid using a RecordList instead of a ResultSet, for example), yes you need to refresh it.
Comment
Comment