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
Developer
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
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 ?

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

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.

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
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.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

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.

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 79
Registered: ‎02-04-2013
My Device: Z10 LE
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.