Combobox with multiselect option not showing number of items selected

5 posts, 0 answers
  1. Jagat
    Jagat avatar
    144 posts
    Member since:
    Jan 2011

    Posted 11 Sep 2017 Link to this post

    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

  2. Loïc
    Loïc avatar
    27 posts
    Member since:
    Oct 2016

    Posted 12 Sep 2017 in reply to Jagat Link to this post

    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 !

  3. Jagat
    Jagat avatar
    144 posts
    Member since:
    Jan 2011

    Posted 12 Sep 2017 Link to this post

    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

  4. Loïc
    Loïc avatar
    27 posts
    Member since:
    Oct 2016

    Posted 14 Sep 2017 in reply to Jagat Link to this post

    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...

  5. Charanjot
    Charanjot avatar
    1 posts
    Member since:
    Nov 2017

    Posted 09 Nov 2017 Link to this post

    Hi jagat,

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

     

Back to Top