Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiselect on change not firing when virtualization #794

Open
cferrar opened this issue Jun 3, 2019 · 4 comments
Open

Multiselect on change not firing when virtualization #794

cferrar opened this issue Jun 3, 2019 · 4 comments

Comments

@cferrar
Copy link

cferrar commented Jun 3, 2019

When using virtualization the on change event does not fire when you remove a selected item. When you select an item the change event does fire.

This works.

This does not fire the change event when a selected item is removed. But it does fire when an item is selected.

            <ak-multiselect k-widget.bind="clientMultiSelect"
                            k-placeholder="Client"
                            k-data-text-field="Name"
                            k-data-value-field="Code"
                            k-data-source.bind="clientDataSource"
                            k-auto-bind.bind="false"
                            k-on-change.delegate="clientMultiSelect_OnChange($event.detail)"
                            k-value.two-way="clientCode"
                            k-virtual.bind="virtualClient">
            </ak-multiselect>
@JeroenVinke
Copy link
Member

Hey! What version of Kendo are you on?

@cferrar
Copy link
Author

cferrar commented Jun 3, 2019

Kendo. version returns 2018.3.1017

Thanks,
Chris

@JeroenVinke
Copy link
Member

Hmm I can't seem to reproduce it: https://gist.run/?id=c8e986dce9650048d7b846e1a1ed62dd

Am I doing something wrong?

@cferrar
Copy link
Author

cferrar commented Jun 3, 2019

I don't think you are missing anything but maybe I am. I copied the example exactly into my code and it mostly works as I would expect. The only thing that is odd is that when I delete the last selected item in my application I do not get the change event. If there are 2 selected items and I delete one I get the change even. I did not see this before because I was only allowing one selection on the control.

I do not see that I'm doing anything different then the gist example.

thanks,
Chris Ferrar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants