Hi Nathan,

setSelection() with an array of items should work. The following code 
works for me in the Playground (revision 19829):

var list = new qx.ui.form.SelectBox();
this.getRoot().add(list);
var item1 = new qx.ui.form.ListItem("item1");
var item2 = new qx.ui.form.ListItem("item2");
list.add(item1);
list.add(item2);
list.setSelection([item2]);​


Does that work for you?


Regards,
Daniel


Nathan Hadley schrieb:
> Hello all,
> 
>  
> 
> I’m trying to set the selected item in a list box using 
> setSelected(listitem) and it doesn’t work. I’m aware that similar 
> controls require an array of items and have tried this too, again with 
> no success. I’ve also tried setSelection() and this doesn’t work either 
> so can anyone tell me where I’m going wrong or if this is a bug?
> 
>  
> 
> My framework revision number is 19738
> 
>  
> 
> TIA
> 
>  
> 
> --
> **Nathan Hadley**
> www.celcat.com
> Tel: 024 7646 9930
> 
> CELCAT is the trading name of Corbett Engineering Ltd,
> a limited company registered in England and Wales with
> company number 1448722. VAT number: 418696219.
> Registered office: 21-23 Mercia Business Village,
> Torwood Close, Coventry, CV4 8HX, United Kingdom
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to