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

AngularJs Kendo Grid two way binding, and only some items works.

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 26 Aug 2017, 09:34 PM
Here there, 
I attached a sample file that you can see, I got two items
only the second one shows the DropdownList selection properly, which is "Exemption A".
 However the first one, 
"Exemptions":["1","2"],  should have the "Exemption A" and "Exemption B" , but it is not. 


I am wondering if you can help me out. 


Thanks!

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 29 Aug 2017, 01:05 PM
Hello Scott,

I was able to resolve the issue by using the k-ng-model instead of the ng-model for the MultiSelect widget:
<select kendo-multi-select
        style="width: 400px;"
        k-options="exemptionDD"
        k-ng-model="dataItem.Answers.Exemptions">

Further information on k-ng-model and its usage could be found in the Scope bindings section of our Documentation.

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