Is there a way to specify the column (and direction) that the data is sorted by when the table is initially rendered? I see a getSortDir() method in TableColumn but there is no setSortDir().
Is there a way to specify the column (and direction) that the data is sorted by when the table is initially rendered? I see a getSortDir() method in TableColumn but there is no setSortDir().
There is not a way to do this with the current code. I have made some changes that will allow you to specify the initial column sort state. You can call sort() on table before it is rendered. Code will go out in next rev.
Code:Table tbl = new Table(cm); tbl.sort(1, SortDir.DESC);