Hey,
I know this is a current topic, coming back regularly on this forum, but i did not find a satisfying answer!
What is the best way to re-populate a table? (a friends list for example)
I mean, should i:
- Clear the table (delete the children), add the new ones, reposition the table
- Desactivate the children, add the new ones, reposition the table, delete the desactivated ones
- Add the new ones desactivated, switch the state of the old and new ones, reposition the table
- Move the table in a hidden layer, and do as in the first dash
And should i call reposition after each element added or after all of them have been added to the table?
I have plenty of tricks, but none of them works as expected... Most of the time, the children are not displayed correctly (space before/between children due to an old children location (Hide Inactive is on); children centered on top of each other due to the table state (false, if in a disabled tab for example)).
In brief, i would like to know the correct workflow to handle the common cases of table repopulation.
Thanks
PS: i don't want the user to see the repopulation process (at most a little blink). But i can add a spinner.