Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Organise a list view - grouping?

I have a list view:

ListView *listView = new ListView();
SchoolListFactory *schoolListFactory = new SchoolListFactory();
GroupDataModel *model = new GroupDataModel();
model->setGrouping(ItemGrouping::None);

 The data is populated from SQL. In the SQL I have a field called 'difficulty'. 

I was wondering, how can I arrange the list view by difficulty. So there is a number of options under easy, some under medium etc.

 

Much like the name list here:

https://developer.blackberry.com/cascades/reference/bb__cascades__groupdatamodel.htmlhttps://develop...

 

I've looked at the docs but can only seem to find QML examples. Does anyone know how to do this in C++?

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
Posts: 313
Registered: ‎05-31-2010
My Device: Alpha 10, Bold 9900, Storm 9530, Tour 9630, Curve 9320, Curve 8900
My Carrier: All

Re: Organise a list view - grouping?

[ Edited ]

You can find answer in the bottom of this article.

 

https://developer.blackberry.com/cascades/documentation/ui/lists/groupdatamodel.html




p(^_^)q
Good good study, day day up