Widgets not initializing when using source binding and template

2 posts, 0 answers
  1. Trent
    Trent avatar
    4 posts
    Member since:
    Dec 2011

    Posted 20 May 2014 Link to this post

    I'm trying to use source binding to an observable array to enable the user to dynamically add new elements as required. My item template has a few hidden fields and a kendo ui editor. The editor is initialized with jQuery in the template. The problem, however, is that the editor is not being initialized properly after the view model has been bound.

    I have created a jsBin showing the problem: jsBin

    Notice that that editors for the initially-bound items are correctly initialized, but any added elements are not. If I unbind and re-bind the entire view model after each item is added then everything will work, but that seems like serious overkill. Any feedback would be appreciated.
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2543 posts

    Posted 22 May 2014 Link to this post

    Hello Trent,

    You need to initialize the widget using attribute initialization, so the editor is correctly displayed, please check the updated example here:


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