Premium forums

Using Kendo Templates within a TreeView

  • Mike
    Mike avatar

    16 Dec 2011 (Link to this post)

    When constructing a treeview, is it possible for me to provide a template to use when rendering the data provided in the dataSource object?
  • Answered Alex Gyoshev
    Alex Gyoshev avatar

    19 Dec 2011 (Link to this post)

    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!
  • Mike
    Mike avatar

    20 Dec 2011 (Link to this post)

    That worked, thank you.
  • Redeeze
    Redeeze avatar

    04 Jan 2012 (Link to this post)

    Being able to use templates is critical for the TreeView to be useful. Is there a preview of this working yet?
  • Atanas Korchev
    Atanas Korchev avatar

    05 Jan 2012 (Link to this post)

    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!
  • Mike
    Mike avatar

    25 May 2012 (Link to this post)

    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 } ]

Read FAQ or see Kendo UI in action!

Launch Demos