This is a migrated thread and some comments may be shown as answers.

Combobox with multiselect option not showing number of items selected

4 Answers 394 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 11 Sep 2017, 04:17 PM

Hi,

 

I am using a RadComboBox with checkboxes set to "true' . This will enable a multi select option. When i select itmes in the combobox, sometimes it shows the number of items that iselected in the combobox and sometimes it does not show anything even after i selected items in the combobox.

Is there any proeprty to show the number of items that re selected in the checkboxes?

 

Thanks in Advance

4 Answers, 1 is accepted

Sort by
0
Loïc
Top achievements
Rank 1
answered on 12 Sep 2017, 09:20 AM

Hi Jagat,

You can have all checked items with the JavaScript method "get_checkedItems" of RadComboBox object.

The result is an array, so you can easily get the number of items with the "length" property.

Hope it helps !

0
Jagat
Top achievements
Rank 1
answered on 12 Sep 2017, 02:54 PM

Hi Loic,

 

I can get teh information that i want using "get_checkedItems".

I want the selection to be seen on the UI.If the user selects 3 checkboxes, after the selection he should be able to see "3 items selected" or something like that on the combobox.

If you see the picture, from the telerik site, after the selection, it displays the items that are selected at the top. What property is needed for the selected items to be displayed?

Thanks

0
Loïc
Top achievements
Rank 1
answered on 14 Sep 2017, 09:00 AM

Hi Jagat,

As far as I know, the RadComboBox component display the items that are selected until the concatenate string of all selected items is fitted in RadComboBox width. After, it will display "3 items selected".

If you take a look on documentation, you will find this property : CheckedItemsTexts. Here you have two options : DisplayAllInInput and FitInInput. Unfortunately, and as you can see, I don't think you have a solution to your purpose...

0
Charanjot
Top achievements
Rank 1
answered on 09 Nov 2017, 06:04 AM

Hi jagat,

Try to set the combobox property Allowcustomtext to true.i hope this will solve your problem.

 

Tags
ComboBox
Asked by
Jagat
Top achievements
Rank 1
Answers by
Loïc
Top achievements
Rank 1
Jagat
Top achievements
Rank 1
Charanjot
Top achievements
Rank 1
Share this question
or