Hello huseyin,
you can just modify the selection array of the controller of the select box
to get that done. Replace the first item in the selection array and the
selection will change automatically. Just take a look at the playground
example to see how it works. Type a,b,c or d in the textfield to see the
selection changing.
var box = new qx.ui.form.SelectBox();
this.getRoot().add(box);
var model = new qx.data.Array(["a", "b", "c", "d"]);
var controller = new qx.data.controller.List(model, box);
var input = new qx.ui.form.TextField();
input.setLiveUpdate(true);
this.getRoot().add(input, {left: 130})
input.bind("value", controller, "selection[0]");
Somehow, it still impresses me how less code is needed for such a use case.
:)
Regards,
Martin
--
View this message in context:
http://n2.nabble.com/SelectBox-set-selection-tp4798272p4802429.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel