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

MVVM template example

2 Answers 132 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 22 Oct 2014, 08:16 PM
Hey!

I have a simple drop down list bound to a kendo.observable object, I'm having difficulty implementing a template for the drop down.

I've tried several methods found online but can't seem to get it to work

example of code structure:
http://jsfiddle.net/hLG98/24/

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 24 Oct 2014, 08:35 AM
Hello Victor,

Thank you for contacting us.

The template should not be part of the ViewModel. Instead please define it in a separate script tag in the HTML. Please check the updated example:

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
jan
Top achievements
Rank 1
answered on 02 Nov 2019, 08:13 PM

THX, here is update:

http://jsfiddle.net/3a01tgd4/

 

Tags
DropDownList
Asked by
Victor
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
jan
Top achievements
Rank 1
Share this question
or