Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
5.1.0.2
-
None
Description
Right now if you want to set an initial sort column for a grid you have to code something like:
if (grid.getSortModel().getSortConstraints().isEmpty()) {
grid.getSortModel().updateSort("column");
}
for every grid in the page.
It would be great if an "initialSortColumn" or "defaultSortColumn" parameter was added to the grid component that would receive the name of the column to which the grid would be ordered by default.