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

Second elment no binding in template

2 Answers 51 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 03 Sep 2012, 05:57 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 04 Sep 2012, 08:37 AM
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!
0
Phil
Top achievements
Rank 1
answered on 04 Sep 2012, 02:54 PM
Thanks, that works.  I suspect this question/answer is in a FAQ on templates already.
Tags
Templates
Asked by
Phil
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Phil
Top achievements
Rank 1
Share this question
or