method onSort()
925796Mar 29 2012 — edited Mar 29 2012Hi all !!!
I ve a read only table sortable.
I ve created a method onSort() with this code :
+public void onSort(SortEvent sortEvent) {+
List sortList = sortEvent.getSortCriteria();
SortCriterion sc = (SortCriterion)sortList.get(0);
boolean order = sc.isAscending();
String property = sc.getProperty();
+}+
So now when I press the triangles in the column headers I can catch the information about the column sorted and in which order.
My problem is that I want to avoid the sorting of the column, i.e.I want to have only the information about column and order.
Any tips ?
Thanks in advance