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

Adobe AIR Development

Reply
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000
Accepted Solution

How to set number of visible items in dropdown list

How can I specify how many items are visible in the list when I open a dropdown? By default I see 5 items, but I want to extend that to 10.

Eugene

My PlayBook App: Checklists
Developer
Posts: 322
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900

Re: How to set number of visible items in dropdown list

Reference Doc: http://www.blackberry.com/developers/docs/airapi/1.0.0/qnx/ui/listClasses/DropDown.html

 

e.g.

var dd:DropDown = new DropDown();
dd.x = x;
dd.y = y;
dd.rowCount = 10;//set this value as needed... e.g. 10
dd.width = w;
dd.height = h;

...

 


PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Developer
Posts: 167
Registered: ‎12-17-2010
My Device: Bold 9000

Re: How to set number of visible items in dropdown list

Thanks! That was easy. Couldn't find the right attribute.
Eugene

My PlayBook App: Checklists