No chance!

cb.focus(); // needet for the next command to work, it will be ignored
in any other case
cb.expand(); // so the store is loaded like it should and the list is
expanded (i can see all entries)
cb.selectByValue(idOrValue, trueOrFalse); // whatever I try here,
ignored...
doLayout(); // I even tried that :)

If I validate the validation says that the field must not be empty,
but nothing is selected.

So there seems to be no way to select a ComboBox entry. Sh.... -
should have known that before I made my framework decision...

Is there a way to get the ID of a given value from the CB, store, ...?
Than I could set the value and translate it before the form submits to
the ID, write that in the cb value, submit and set the value back to
the text after the submit... - as you can see I am very depressed by
now ;)

On 2 Okt., 18:33, Patrizio De Michele <[email protected]> wrote:
> check if is called the event onValid....
> and try to call an explicit validation with validate("valueBeingValidated")
>
> 2009/10/2 Anton Trapp <[email protected]>
>
>
>
>
>
> > I want to trigger the select of the combobox, not respond to it.
>
> > Something happens (the user selects a row in a grid), than I do:
>
> >     position.expand();
> >     position.selectByValue(selectedRow.getAsString("position"), false);
> >     position.setValue(selectedRow.getAsString("position"));
>
> > (API documentation says, that the CB must be expanded - so I call this
> > command too - it does nothing). The only thing that works is the
> > setValue. But setValue does not perform a select (selected item is
> > undefined)...
>
> > Frustrating...
>
> > zestreet schrieb:
> > > How about a OnSelect event in the combo box? Like this:
>
> > >        cBox.addListener(new ComboBoxListenerAdapter(){
>
> > >               public void onSelect(ComboBox comboBox, Record record, int
> > index) {
> > >                               cBox.setValue(record.getAs"Something"("the
> > name of the field");
> > >               }
> > >         })
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to