Announcement

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

    Multi-Select with editorType:"ComboBoxItem" has first item selected

    Be sure your post includes:

    1. Smartclient version v9.1p_2014-08-08/Pro Deployment (built 2014-08-08)

    2. Browsers tested on Chrome 37.0.2062.103 m
    3. Following link will take you the smartclient multi-select example http://www.smartclient.com/docs/9.1/a/system/reference/SmartClient_Explorer.html#multiSelect

    modify the code as shown below
    Sample code -

    Code:
     {
    editorType:"ComboBoxItem" ,          
     type:"select",
                title:"Select Multiple (PickList)",
                multiple:true,
                multipleAppearance:"picklist",
                valueMap: [ "Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse" ]
            }
    click "Try it"

    Open the first combo-box item to notice that the Cat is selected and checkbox is check marked.

    Not sure if the design intent - if it is is there a workaround?

    Thanks

    #2
    These are nonsense settings - you can use multiple:true with SelectItem, but for a multi-select comboBox, you need MultiComboBoxItem.

    Comment


      #3
      Thanks for the quick response - our intent here is to have a behavior similar to the multi-select example. But we are running into an issue when we use editorType as "SelectItem" instead of "ComboBoxItem" (which is by the way reproducible in multi-select example as well) -

      When the dropdown list for a selectItem is open - it has traits of a dialog which can be hidden if the clicked anywhere outside the dialog. In other words, I am not able to click on any other component on the page until and unless the dropdown is not closed.

      Please let me know if any further explanation is needed.

      Thanks

      Comment


        #4
        Blocking the click that closes the dropdown is a common behavior seen with drop-down controls in many applications. Right now, there is no setting to allow the click to be processed normally, but if that's critical for you, consider Feature Sponsorship.

        Comment

        Working...
        X