PDA

View Full Version : Override Grid GroupinView/GroupingStore sort



ssinai
8 May 2013, 12:17 PM
I'm using a grid with GroupingStore and GroupingView. The three groups are

Core
Alternate Core
Additional Measures

I need to order the groups in the above order, but they're showing up in the following order

Additional Measures
Alternate Core
Core

Anyone know what I need to do to override the alphabetical sort?

Thanks.

Colin Alworth
20 May 2013, 10:24 AM
At a glance, it appears your sort order is backward - how are you sorting, and have you tried specifying the opposite order?

ssinai
3 Jun 2013, 12:58 PM
I've tried adding the groups in different orders, but the group headers always sort alphabetically.

Isn't there a way to override or disable the sort for group headers?

ssinai
3 Jun 2013, 1:39 PM
I've got it working now. I had to specifically call sort after the grouping store was loaded with data. I incorrectly thought the grouping store automatically sorted data when it was loaded.