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.form.ListItem(item.name, null, item.ID)); },this); selectBox.setModelSelection([modelSelection]);
regards -- View this message in context: http://qooxdoo.678.n2.nabble.com/SelectBox-and-getModelSelection-tp7587989p7588022.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel