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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
skyhawk92
Posts: 51
Registered: ‎02-04-2013
My Carrier: Simobil

LisView- make selection permanent(marked)

I can't find answer anywhere so I'll ask here.

 

Would it be somehow possible to make selection in a listview(of standard list items) permanent, so the selected items would stay colored "forever" ?  

 

Another question,   is it possible to change( text for instance) of selected standard list items ?

Please use plain text.
Developer
Zmey
Posts: 907
Registered: ‎12-18-2012

Re: LisView- make selection permanent(marked)

I guess that's not possible. You'll have to make your own custom list item.

Nine-slice images can be used for creating the border.

 

Please use plain text.
Regular Contributor
skyhawk92
Posts: 51
Registered: ‎02-04-2013
My Carrier: Simobil

Re: LisView- make selection permanent(marked)

[ Edited ]

Is there any other option that can be used to mark some "items" and leave them marked ?  Similar to calendar function when you mark events.

Please use plain text.
Developer
Zmey
Posts: 907
Registered: ‎12-18-2012

Re: LisView- make selection permanent(marked)

Maintain the state of list items (including the selection state) in dataModel. List items only display the information stored in dataModel.

There are number of different models available which operate on QVariants or QVariantMaps: ArrayDataModel, GroupDataModel (if you need sorting of items). It's also possible to create a custom dataModel by creating a DataModel subclass.
Please use plain text.
Regular Contributor
skyhawk92
Posts: 51
Registered: ‎02-04-2013
My Carrier: Simobil

Re: LisView- make selection permanent(marked)

[ Edited ]

What about changing text of a standard list item ? With a button or ...   data is at first given in XML.

Please use plain text.