Initializing in the html vs in javascript

2 posts, 1 answers
  1. Joe
    Joe avatar
    10 posts
    Member since:
    May 2015

    Posted 13 Nov 2015 Link to this post


    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.

    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?



  2. Answer
    Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 17 Nov 2015 Link to this post

    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":


    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top