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

Initializing in the html vs in javascript

1 Answer 73 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 13 Nov 2015, 11:15 AM

Hi.

I'm in a situation where I am dynamically creating a kendoUI dropdown list from javascript. it does not adopt all the values to function with angular JS properly. Please see the following Dojo example. http://dojo.telerik.com/eyOdU/2

The control created declaratively with an angular directive hooks up properly but the one created from javascript does not. What am I missing? how do I dynamically create this control from Javascript and still have the lovely control over data Angular brings?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 17 Nov 2015, 10:15 AM

Hello Joe,

While it is possible to create Kendo UI widgets using jQuery plugin syntax, it will not honor the Angular directives, like ng-model.  This is expected behavior, documented here:

If you would like to use the AngularJS bindings then you will need to initialize the widget the "Angular way":

Regards,

Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
Joe
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or