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

Once MaxSelectedItems is reached, you cannot see the items you have selected.

3 Answers 190 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Veteran
Iron
Rob asked on 03 Jun 2020, 12:54 PM

I don't know if this is a bug or by design for some reason when you have the MaxSelectedItems attribute set and you have TagMode="Single" once you reach the max number of selections allowed you can no longer click in the control and have it dropdown so you can see what you have actually selected. You have to hit the displayed "x" in the control to clear the values in order to have the dropdown list of values appear again.

Does anyone know of a way around this? I know our clients are going to want to actually be able to see what they have selected when they are editing the form values.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 08 Jun 2020, 12:38 PM

Hi Rob,

The observed behaviour of the MultiSelect widget is intended by design. When the maximum allowed number of selected items in the widget was reached, the pop-up drop-down would not be opened. Here you could find an enhancement suggestion about the underying Kendo UI multiselect widget of RadMultiselect, so you can share your concerns on the discussed:
https://github.com/telerik/kendo-ui-core/issues/1013

A possible way to work around this behavior for the moment is to override the allowOpenig fucntion of the widget like follows:

        <script>
            function onLoad(multiSelect, args) {
                multiSelect.get_kendoWidget()._allowOpening = function(){return true};
            }
        </script>
        <telerik:RadMultiSelect ID="RadMultiSelect1" runat="server" Filter="Contains" Width="400px"
            Placeholder="Select attendees..." MaxSelectedItems="3" TagMode="Single">
            <ClientEvents OnLoad="onLoad" />
            <Items>
                <telerik:MultiSelectItem Text="problem1" Value="1"></telerik:MultiSelectItem>
            </Items>
        </telerik:RadMultiSelect>

Regards,
Vessy
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Rob
Top achievements
Rank 1
Veteran
Iron
answered on 08 Jun 2020, 12:46 PM
Thank you, Vessy!
0
Vessy
Telerik team
answered on 08 Jun 2020, 03:33 PM

Hi,

You are absolutely welcome, Rob :)

Regards,
Vessy
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
MultiSelect
Asked by
Rob
Top achievements
Rank 1
Veteran
Iron
Answers by
Vessy
Telerik team
Rob
Top achievements
Rank 1
Veteran
Iron
Share this question
or