When we reset the container datasource or clear the container datasource of the table, the sorting order of the table is reset.
The work around could be using
setSortAscending(!isSortAscending());
setSortAscending(isSortAscending());
setSortAscending(!isSortAscending());
to retain the sorting order settings like before the clear/reset of datasource.
Subscribe to:
Post Comments (Atom)
Hi!
ReplyDeleteIsn't it easier to just call Table.sort() after container update?
Table memorizes last used sort properties.