AnsweredAssumed Answered

Alfresco.util.DataTable and sorting

Question asked by loftux Moderator on Feb 3, 2011
Latest reply on Apr 5, 2012 by erikwinlof
I've got paging working in my DataTable, but it breaks when trying to do sorting.
Sorting itself works, but if paging is introduced, the paging breaks (ie is ignored) when sorting.

DataTable paging send paging arguments
<url>&skipCount=0&maxItems=10
but sorting uses defaults
<url>&sort=name&dir=desc&startIndex=0&results=500

Is there a way to configure DataTable widget to use/replace startIndex and results with skipCount and maxItems respectively?

Outcomes