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

MVVM array bind DropDownList

4 Answers 134 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 22 Jun 2015, 03:57 AM

Hi Guys,

Im using Kendo MVVM to bind a row template to a datasource array and all works fine. But in in the row template i have a dropdownlist that im trying to bind to a datasource but cant get it to work properly. 

I have tried binding the dropdownlist to the kendo observable viewmodel variable and also to a field directly in array datasource but both approaches do not work.

I would like to know if this scenario is supported in Kendo MVVM to bind a dropdownlist inside a datasource array?

Here there is a sample prototype http://dojo.telerik.com/@silviu/ImoFe/14

Cheers!

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
IT
Top achievements
Rank 1
answered on 22 Jun 2015, 07:43 AM

Hi Guy, 

I noticed that wrapping the source array for the dropdownlist in a datasource works as expected.

But somehow the plain array as source doesnt work in MVVM array binding mode as it does for single dropdownlist binding.

Wonder if this is a bug or known limitation?

Cheers!

 

0
Kiril Nikolov
Telerik team
answered on 24 Jun 2015, 07:35 AM

Hello CORNEL,

This is the expected behavior as the widget will expect a dataSource instance to be used when wrapped in a template. Currently we do not plan on introducing a change in this behavior.

Thanks for the understanding.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
IT
Top achievements
Rank 1
answered on 24 Jun 2015, 09:24 AM

Hi Kiril,

I see.. and is good to keep in mind this distinction when implementing the code.

Thanks for clarifying my query.

Cheers! 

 

 

0
Kiril Nikolov
Telerik team
answered on 24 Jun 2015, 01:31 PM

Hello CORNEL,

You are most welcome.

In case something else comes up - do not hesitate to contact us.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
IT
Top achievements
Rank 1
Answers by
IT
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or