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

Using Kendo Templates within a TreeView

5 Answers 202 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 16 Dec 2011, 08:42 PM
When constructing a treeview, is it possible for me to provide a template to use when rendering the data provided in the dataSource object?

5 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 19 Dec 2011, 09:08 AM
Hello Mike,

Not yet. We have this on our roadmap for Q1.2012 -- until it is released, you can the node text to the HTML that you need and set encoded to false:

dataSource: [ { text: "<input type='hidden' value='123' />Foo", encoded: false } ]

Best wishes,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mike
Top achievements
Rank 1
answered on 20 Dec 2011, 11:40 PM
That worked, thank you.
0
Redeeze
Top achievements
Rank 1
answered on 04 Jan 2012, 09:38 PM
Being able to use templates is critical for the TreeView to be useful. Is there a preview of this working yet?
0
Atanas Korchev
Telerik team
answered on 05 Jan 2012, 09:55 AM
Hello,

 No, there is no public preview of this feature. Stay tuned for the first beta of the Q1 2012 release.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mike
Top achievements
Rank 1
answered on 25 May 2012, 05:16 PM
Sorry to bring up the old thread but how would I access the value of:

dataSource: [ { text: "<input type='hidden' value='123' />Foo", encoded: false } ]
Tags
TreeView
Asked by
Mike
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Mike
Top achievements
Rank 1
Redeeze
Top achievements
Rank 1
Atanas Korchev
Telerik team
Mike
Top achievements
Rank 1
Share this question
or