This is a migrated thread and some comments may be shown as answers.
The selected items are not displayed when you deselect one of them.
4 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 12 Oct 2017, 08:14 AM

When you deselect an item, this element is removed from the value.
So from 28 steps to 27 elements.
But in the multiselect does not display any element.
But if I join the viewmodel, that variable is made up of 27 elements.

The selected items are not displayed when you deselect one of them.

This happens if only the selected ones are the same as the datasource.

it's possible ? has it ever happened to you?

 

<select id="a" data-role="multiselect"
                data-value-primitive="true"
                data-text-field="name"
                data-value-field="id"
                data-bind="value: doc.Value,
                    enabled: doc.S,
                    source: doc.Source,
                    events: {
                        dataBound: doc.onDataBound,
                        select: doc.onSelect,
                        deselect: doc.onDeselect,
                        change: doc.onChange
                        }">
</select>

 

 

 

4 Answers, 1 is accepted

Sort by
0
Federico
Top achievements
Rank 1
answered on 12 Oct 2017, 09:31 AM
this is the js error
Uncaught TypeError: a.select(...).done is not a functionr.extend._removeTag @ kendo.all.js:32412r.extend._tagListClick @ kendo.all.js:32422n.extend.proxy.n.isFunction.d @ jquery.min.js:2n.event.dispatch @ jquery.min.js:3n.event.add.r.handle @ jquery.min.js:3
0
Dimitar
Telerik team
answered on 16 Oct 2017, 08:16 AM
Hello Federico,

On the following Dojo example you can find a Kendo UI MultiSelect implementation with MVVM, where a similar configuration is used for the widget. With it, selecting/deselecting an item properly triggers the change event of the widget and the value is also updated. 

Can you review the example and modify it, so that the described issue can be reproduced? Also, can you please elaborate a bit more on the select/deselect issue and provide steps to replicate this behavior?  

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Federico
Top achievements
Rank 1
answered on 16 Oct 2017, 09:15 AM

I have the same data in the datasource in the value.
after I saved the data in db
when updating the multiselect: If you deselect an element, kendo prints a console error and the multiselect is empty (but if the datasource is full).

I can not provide an example, the application is complex .

 

0
Dimitar
Telerik team
answered on 16 Oct 2017, 01:16 PM
Hello Federico,

We will need a runnable sample in order to troubleshoot the cause of the problem, investigate if this is a bug and handle the scenario appropriately. May I ask you to isolate just the MultiSelect implementation with hardcoded data (or using the Kendo UI Demo services), so that we can reproduce the error on our end?

Also, you can review the Kendo UI Demos Service Repository, where the service implementation that is used for the official demos can be found.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Federico
Top achievements
Rank 1
Answers by
Federico
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or