Hi Lucio,
Its something I'd be interested in pursuing myself, but the real problem
is how to display the sort state to the user. With single sort state,
you just show an arrow next to the column used for sorting.
You could use a Palette type component as a top toolbar, allowing the
user to add from available columns in the left to the sort columns in
the right, and sort them in the order that they were added to the right
hand side of the palette.
You dont need to use SortableDataProvider (which supports
SingleSortState), you can use any subclass of ISortableDataProvider and
you can support whatever ISortState you want.
Cheers,
Jesse
On 30/04/2013 18:48, Lucio Crusca wrote:
Hello *,
is there a way/what's the cleaner way to support multiple sort columns with
DataTable? I know it's up to the SortableDataProvider to provide sorted rows,
no matter how, but the SortParam class seems to support only one sort
criterium at a time. e.g. the DataTable is aware only of the *last* sorted
column. Even if I kept track of other columns (e.g. previously clicked for
sorting), I still have no clue about how to provide a visual feedback to the
user about what columns are being included in the sort criteria.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org