I would like to know if Jqwidgets has combobox multi select?

1

Hi, I have a couple of comboboxes created with the Jqwidgets library and everything is very well working correctly ... Currently the combobox allows you to select only one option at a time

The problem is that I have been asked to modify the structure of the combo so that it allows me to select more than one record at a time  Previously I used a Bootstrap selector that allowed me to do this this is the example

Does anyone know if I can add some property or something to the combobox made with Jqwidgets to connect it to multiselect as the second example? This is the code to load the combobox

$('#jqxdropdownlist').jqxDropDownList({
    filterable: true,
    source: dataAdapterruta,
    displayMember: "ruta",
    valueMember: "pk",
    width: 200,
    height: 25
});

Thank you in advance .. I'm waiting for your help:)

    
asked by Karime 28.08.2018 в 06:16
source

1 answer

0

You can achieve this with the multiselect property.

As you can see in the API ( link ) :

$("#jqxComboBox").jqxComboBox({multiSelect: true });

Enables the multiple selection mode.

Note that you must use the "getSelectedItems" method (instead of "getSelectedItem") to obtain the selected options:

var items = $("#jqxComboBox").jqxComboBox('getCheckedItems'); 

You can find an example of use in link .

Greetings and I hope it works.

    
answered by 28.08.2018 в 08:29