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
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10
My Carrier: EE

Maintain appearance of standard list items

Is it possible to disable Standard List Items without them turning grey?

Please use plain text.
BlackBerry Development Advisor (Retired)
garydev
Posts: 83
Registered: ‎10-10-2012
My Device: Z30
My Carrier: Bell

Re: Maintain appearance of standard list items

Hi macaronlover,

 

What code did you use to disable the list view item?

 

-gary

Please use plain text.
Developer
macaronlover
Posts: 101
Registered: ‎01-06-2014
My Device: Q10
My Carrier: EE

Re: Maintain appearance of standard list items

        StandardListItem {
            title: "Item 1"
            description: "Descrption of Item 1"
            enabled: false
        }

 

Please use plain text.
BlackBerry Development Advisor (Retired)
garydev
Posts: 83
Registered: ‎10-10-2012
My Device: Z30
My Carrier: Bell

Re: Maintain appearance of standard list items

mararonlover,

 

instead of grey - what color or what 'look' do you want to achieve?

 

-g

Please use plain text.
BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Maintain appearance of standard list items

Hi macaronlover,

 

By design, it is currently not possible to customize how the appearance of the StandardListItem component based on the enabled property. Per the documentation of the enabled property, "Changing the enabled state may also affect the appearance of the control." to how the controls are designed to appear if disabled.

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__control.html#property-enable...

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Maintain appearance of standard list items

You can,  however, just make your own list item that looks like whatever you like.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.