Announcement

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

  • shresthg_des
    started a topic ComboBox with Multiple Selection

    ComboBox with Multiple Selection

    SmartClient Version: v9.1p_2016-04-15/Pro Development Only (built 2016-04-15)
    Google Chrome Version 56.0.2924.87 (64-bit)

    We are looking to create a ComboBox item with multiple selection, very similar to the component demonstrated in SmartClient showcase: https://www.smartclient.com/smartcli...rolMultiSelect. The showcase demonstrates a "Select Item" with multiple selection which does not allow the user to filter by searching. We tried to change the type of the form item to a ComboBox so that we could search while having multiple selection. This changed caused some strange issues compared to its SelectItem counterpart.

    Steps to reproduce the issue (please see attached image for issue):
    - Open the menu and select multiple entries (i.e., "Cat" and "Dog")
    - Close the menu by clicking outside of the menu
    - Open the menu again

    Notice that the first item "Cat" is selected. "Dog" has been unselected but the ComboBox text value shows "Cat, Dog". We were expecting to have the selected items reflect the ComboBox value (text value: "Cat, Dog", items selected: "Cat" and "Dog").

    Is this a bug on SmartClient or is there another way to do this?

    Thanks!

    Code:
    isc.DynamicForm.create({
        ID:"exampleForm",
        width:450,
        fields: [
            {
                editorType: "comboBox",
                title:"ComboBox Multiple (PickList)",
                multiple:true,
                multipleAppearance:"picklist",
                valueMap: [ "Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse" ]
            }
        ]
    });
    Attached Files

  • Isomorphic
    replied
    This is a strange post - are you aware there is literally a component called MultiComboBoxItem, with docs and samples?

    Your code instead tries to apply settings which are valid for a SelectItem to a different type of component - this would not be expected to work in general, regardless of which two components are involved.

    Leave a comment:

Working...
X