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
New Developer
setiawand
Posts: 41
Registered: ‎07-12-2012
My Device: Orlando, Dev Alpha
My Carrier: Telkomsel
Accepted Solution

Sorting GroupDataModel Descending or Ascending

how to sort data on GroupDataModel with Descending or Ascending Behaviour ?

Please use plain text.
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Sorting GroupDataModel Descending or Ascending

Hi

 

by using below code in the qml you can sorting data model ascending or descending order.

groupdatamodel has a method setSortedAscending(true) if you set true items should be sorted in ascending order and if you set false items should be sorted in descending order.
Please use plain text.