1. #1
    Ext User
    Join Date
    May 2008
    Location
    Mannheim, Germany
    Posts
    6
    Vote Rating
    0
    SSchaefer is on a distinguished road

      0  

    Question CoboBox.setForceSelection(true) not working?

    CoboBox.setForceSelection(true) not working?


    Hi,
    I don't want my users to enter text in a ComboBox manually. As described in the JavaDoc, the property ForceSelection==true is used to force a selection instead of any text. But nothing changed after calling combo.setForceSelection(true).

    I used:
    GWT 1.5 M2 on Windows XP
    Ext GWT 1.0 Beta 3

    Thanks for your help.
    Steffen

  2. #2
    Ext User
    Join Date
    May 2008
    Location
    Mannheim, Germany
    Posts
    6
    Vote Rating
    0
    SSchaefer is on a distinguished road

      0  

    Default


    Hi again,
    I forgot to say, that the SelectedValue doesn't change by editing the text. The SelectedValue is always the last selected item. You can't deselect a selected item.

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    1. Force selection was not implemented. It is now. However, force selection allows the text to be edited. When the field loses focus, the value is forced to be value in the list. If there is not a match, the text is returned to its previous value or cleared.

    2. setEditable(false) stops a user from enterering text and works in beta 3.

    3. The value was not updated when entering text and leaving the field. This is fixed.

    Changes are in SVN.

  4. #4
    Ext User
    Join Date
    May 2008
    Location
    Mannheim, Germany
    Posts
    6
    Vote Rating
    0
    SSchaefer is on a distinguished road

      0  

    Default


    Thank you, setEditable(false) works fine

  5. #5
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    Thanks. That's gonna help me too

Thread Participants: 2