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

Multiselect inheritance and MVVM (possible bug)

2 Answers 66 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 02 Sep 2014, 04:42 PM
Like the title says. :)
The problem is that when getting selected value only first value is returned not array of all values.
Steps to reproduce: Add 2 items to both (normal and inherited) multiselect and carefully watch console. Multiselect returns array, but inherited multiselect returns only object of the first selected item.

dojo example

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 04 Sep 2014, 11:43 AM
Hello Matjaz,

The problem will occur because the multiselect uses a widget specific value binding that will not be used for the custom widget. You can set the multiselect value binding as value binding for the custom widget using the code in the snippet below in order to avoid the problem:
kendo.data.binders.widget.matjazmultiselect = {
    value: kendo.data.binders.widget.multiselect.value
};


Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Matjaz
Top achievements
Rank 1
answered on 05 Sep 2014, 06:21 AM
It is working.
Thank you.
Tags
MultiSelect
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Matjaz
Top achievements
Rank 1
Share this question
or