Multiselect Wrapper Change Event

0 Answers 16 Views
MultiSelect wrapper
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 29 Feb 2024, 07:29 PM | edited on 29 Feb 2024, 07:29 PM

Using Vue Wrapper for the Dropdowns

I have a multiselect in a v-for, it's rendering 3 widgets.

                                <kendo-multiselect :data-source="t.Items"
                                                   class="w-100"
                                                   :data-text-field="'Value'"
                                                   :height="300"
                                                   :value-primitive="false"
                                                   v-model="t.Selected"
                                                   :filter="'contains'"
                                                   :change="onKendoChange('multiselect')"
                                                   :placeholder="'- Select -'">
                                </kendo-multiselect>

 

When the page loads, all 3 of these fire their change event twice, so if I console log, I get 6 events. Ideally I don't want anything to happen on mount\load... just once the selection changes.

But then in the onKendoChange function, if I change ONE of the multi-selects, it's firing 3 more events, not just the event once for that one widget.

Basically I need to re-call my "getdata" function anytime something is selected...

Running 2023.3.1010

Steve

sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
commented on 29 Feb 2024, 07:35 PM

Wait, figured it out I think

v-on:change not just :change?

Petar
Telerik team
commented on 04 Mar 2024, 06:17 AM

Hi, Steve. 

I am happy to hear that you managed to implement the targeted functioanlity. Thank you for sharing the solution with the community. 

No answers yet. Maybe you can help?

Tags
MultiSelect wrapper
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or