You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using "expand" on a table a expanded row will collapse when updating the table by calling load().
Is it possible to prevent that?
And is it somehow possible to have multiple rows expanded?
I guess that goes into the same topic, as the table gets refreshed and previous expanded rows are getting collapsed.
The text was updated successfully, but these errors were encountered:
It is possible, but only with some manual work where you would need to remember the expanded state of each row and restore it after rebuilding the table. Alternatively, it might be possible to update the data in your rows in-place with your new data instead of calling load().
The smart table was always missing some sort of "update" method for data, which would be merging a data set into the existing one, preserving the visual appearance.
In an ideal world, I would like to invoke some sort of update() method instead of load() which does the following:
based on a key (e.g. database ID) existing rows are updated with data passed to update()
keys that cannot be found in the update set will be removed from the table (configurable, in case we want partial updates!)
new data is added to the table (append + sort, or better directly via insertion sort)
But that would require a cleaner separation of DataSource and DataSet and an overall architecture overhaul.
When using "expand" on a table a expanded row will collapse when updating the table by calling load().
Is it possible to prevent that?
And is it somehow possible to have multiple rows expanded?
I guess that goes into the same topic, as the table gets refreshed and previous expanded rows are getting collapsed.
The text was updated successfully, but these errors were encountered: