Announcement

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

    ComboBoxItem with multi checkbox selection

    Hello,

    I'm using SmartClient_v91p_2014-03-23_PowerEdition and I'm trying to achieve MultiComboBox control that will show values in a grid via option data source and allow me to select multi values by checking a checkbox. I am able to show ComboBox with an option data source perfectly but when I try to add multi selection everything get messy. This is my code:

    Code:
    { /* autocomplete */
    
              ID: "release_control_id",
    
              name:"release",
    
              title:"Release",
    
              multipleAppearance:"picklist",
    
              multiple: true,
    
              editorType:"ComboBoxItem",
    
              optionDataSource:"release_list",
    
              
    
              pickListFields: [
    
              
                { name: "_copyTo", hidden: true },
                
                { name: "id", hidden: false },
                
                { name: "name", hidden: false },
                
                { name: "portfolio$name", hidden: false },
                
                { name: "startDate", hidden: false },
                
                { name: "endDate", hidden: false },
                
                { name: "deliveryQaManager$fullName", hidden: false },
                
                { name: "customerReleaseManager$fullName", hidden: false },
                
                { name: "status$name", hidden: false },
                
    
              ]
    
            }
    Thank you

    #2
    To use MultiComboBoxItem, set editorType:"MultiComboBoxItem".

    Using multiple:true when you are explicitly specifying the editorType as "ComboBoxItem" does not work, because MultiComboBoxItem is actually a different UI component, not a different mode of ComboBoxItem.

    Comment


      #3
      but I want to use checkboxes to select the values ... I thought that the MultiComboBoxItem allow you to select value only with value buttons.

      Comment


        #4
        We have two modes available:

        1. use SelectItem w/multiple:true. Has checkboxes, but does not allow end user filtering, because this would remove the checked items from view, leaving the user no way to uncheck.

        2. MultiComboBoxItem

        Comment


          #5
          So I'm using the MultiComboBoxItem but now I don't see the fields in a grid, I only see one field.

          Comment


            #6
            Sorry, you will need to be (much) more specific.

            Comment


              #7
              Well, I'm setting pickerListFields to see a grid drop down. But when I use the MultiComboBox I only see one field when clicking on "enter value". When using a ComboBoxItem I see the grid.

              Comment


                #8
                See docs for MultiComboBoxItem - there is no pickListFields property directly on MultiComboBoxItem, it should be set on the "comboBox" AutoChild of MultiComboBoxItem.

                Comment


                  #9
                  Cool, working great!

                  Comment

                  Working...
                  X