Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    PickList of ComboBoxItem pops up after selecting a value

    After upgrading to Smart GWT 2.5 (power edition) we have a problem with some of our ComboBoxItems:
    If you select an item from the picklist with a mouse click, the picklist is closed (as expected) but then pops up again immediately. You then have to select the item again, which is annoying for the user.

    For example, the following ComboBoxItem exhibits the described behavior:

    Code:
    final ComboBoxItem prtId = new StyledComboBoxItem(Consts.F_PRI_PRT_ID);
    prtId.setOptionDataSource(DataSource.get(Consts.DS_UM_PRIVILEGE_TYPE));
    prtId.setValueField(Consts.F_PRT_ID);
    prtId.setDisplayField(GeneratedFieldConsts.F_PRT_NAME);
    prtId.setSortField(Consts.F_PRT_NAME);
    prtId.setAutoFetchData(false);
    prtId.setPickListWidth(380);
    prtId.setDefaultToFirstOption(false);
    prtId.setFilterLocally(true);
    prtId.setRequired(true);
    prtId.setSelectOnFocus(true);
    Perhaps, there are already some known issues with ComboBoxItems in the current version of Smart GWT?

    #2
    Hi,

    Please write here the solution if you've found it, because I'm facing the same issue.
    Also I will post here, if I find anything.

    thanks

    Comment


      #3
      http://forums.smartclient.com/showthread.php?p=72101#post72101

      Comment


        #4
        You are right,
        Code:
        setAddUnknownValues(false)
        seems to be the problem. However, if you select a picklist entry with the keyboard, everything works as expected. Only a mouse click causes problems. It would be really nice, if this issue was fixed soon.

        Comment


          #5
          Has you tried a nightly? This has been fixed for a while.

          Comment


            #6
            You are right, this problem seems to be fixed with the latest builds. Thank you.

            Comment

            Working...
            X