Second elment no binding in template

3 posts, 1 answers
  1. Phil
    Phil avatar
    4 posts
    Member since:
    Jun 2011

    Posted 03 Sep 2012 Link to this post

    I was playing around creating a template and came across this problem.  The template has two element, first with data-role of numeric text box, the second with grid.  The first element binds correctly, but the grid does not show up. 

    I created a jsFiddle that demonstrates the behavior.  I had also tried making the items array an observable with no luck.

  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 04 Sep 2012 Link to this post

    Hello Phil,

    In order to function properly the template needs a single root element. Wrapping it in a DIV element works. For convenience I updated your jsFiddle example.

    Regards,

    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Phil
    Phil avatar
    4 posts
    Member since:
    Jun 2011

    Posted 04 Sep 2012 Link to this post

    Thanks, that works.  I suspect this question/answer is in a FAQ on templates already.
Back to Top