Hi Everyone
I have a combobox that is filled with values from the server. Also from the
server I am getting an information which item should be the chosen one.
At the moment I tried to use setSelection function but with no result.
I am using qooxdoo 0.8.2
Here is my code snippet
var contactName;
if(this.__contactComboBox.hasChildren()){
var contactsItemsCount =
this.__contactComboBox.getChildren().length;
var contactsItems =
this.__contactComboBox.getChildren();
for (var i = 0, l = contactsItemsCount; i < l;
i++){
var selectedContactID =
contactsItems[i].getUserData("ID");
if (selectedContactID ==
selectedContact){
contactIndex =
this.__contactComboBox.indexOf(contactsItems[i]);
}
}
}
this.__contactComboBox.setSelection(contactIndex);
I also tried different parameters in setSelection function with no success.
S pozdravem / Best regards,
Monika Falk, Software Developer
Tieto
------------------------------------------------------------------------------
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