AggregateTable, keeping the original order

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

AggregateTable, keeping the original order

Postby jeo » Wed Jul 23, 2014 1:46 am

Hi There,

When I use AggregateTable all the values are aggregated in alphabetical order, is there a way to avoid this?

For example, for a given list of values for a column: 3 1 2 2 1 3:

they will be aggregated as:
+1
+2
+3

I would like them to be aggregated as (order of appearance in the list)

+3
+1
+2

Thanks,

J
jeo
 
Posts: 3
Joined: Wed Mar 05, 2014 7:03 am

Re: AggregateTable, keeping the original order

Postby jeo » Wed Jul 23, 2014 3:29 am

I found the solution:

Code: Select all
AggregateTableModel aggregateTableModel = new AggregateTableModel(model);
aggregateTableModel.setSortAggregatedColumns(false);
AggregateTable table = new AggregateTable(aggregateTableModel);
jeo
 
Posts: 3
Joined: Wed Mar 05, 2014 7:03 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 3 guests

cron