Re: [qooxdoo-devel] SelectBox and getModelSelection

2016-02-17 Thread rsantiagopaz
var modelSelection = (selectBox.isSelectionEmpty()) ? 2 : selectBox.getModelSelection().getItem(0); selectBox.removeAll(); [{ID: 1, name: 'Test ' + Math.random()},{ID: 2, name: 'Test ' + Math.random()},{ID: 3, name: 'Test ' + Math.random()}].forEach(function(item){ selectBox.add(new qx.ui

[qooxdoo-devel] SelectBox and getModelSelection

2016-02-10 Thread Daniel Lenggenhager
Hi all, I've an error, when I try to reload a select box and remember the selected model (to reselect after reloading). Error: Could only select one item, but the selection array contains 2 items! Have I missed something? - Thanks for the

Re: [qooxdoo-devel] SelectBox and getModelSelection

2013-07-16 Thread Daniel Lenggenhager
arlsruhe *Von:*Daniel Lenggenhager [mailto:qoox...@ctool.ch] *Gesendet:* Dienstag, 16. Juli 2013 14:30 *An:* qooxdoo-devel@lists.sourceforge.net *Betreff:* [qooxdoo-devel] SelectBox and getModelSelection Hi, Maybe it's a bug... Playground: http://tinyurl.com/pzsvymj Select an other ListItem in

Re: [qooxdoo-devel] SelectBox and getModelSelection

2013-07-16 Thread Mustafa Sak
oo-devel@lists.sourceforge.net Betreff: [qooxdoo-devel] SelectBox and getModelSelection Hi, Maybe it's a bug... Playground: http://tinyurl.com/pzsvymj Select an other ListItem in the SelectBox and then again to the first one (with the model value: null). getModelSelection doesn't accept

[qooxdoo-devel] SelectBox and getModelSelection

2013-07-16 Thread Daniel Lenggenhager
Hi, Maybe it's a bug... Playground: http://tinyurl.com/pzsvymj Select an other ListItem in the SelectBox and then again to the first one (with the model value: null). getModelSelection doesn't accept the change to the value: null. Regards Daniel ---