Hello,
using wicket.kendo.ui.datatable.DataTable and with ISortStateLocator data
provider with SingleSortState.
Problem is that resetting sort to original state is difficult because with
3rd click of header cell 'setSort' is never called, so sort state stays in
descending state with same sort property.
Overrider DataProviderBehavior/setSort to see what happens and appears that
'setSort' is never called on 3rd click of header because variable
'logicPattern' is null
DataProviderBehavior:
if (logicPattern != null) {
this.setSort(PropertyUtils.unescape(logicPattern),
fieldPattern == null ? SortOrder.NONE : (fieldPattern.equals("asc") ?
SortOrder.ASCENDING : SortOrder.DESCENDING));
}
Using Wicket 7.9
Suggestions ?
hk
--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]