Using Kendo Templates within a TreeView

6 posts, 1 answers
  1. Mike
    Mike avatar
    11 posts
    Member since:
    Aug 2011

    Posted 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?

  2. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2073 posts
    Member since:
    Sep 2012

    Posted 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!

  3. Mike
    Mike avatar
    11 posts
    Member since:
    Aug 2011

    Posted 20 Dec 2011 Link to this post

    That worked, thank you.

  4. Redeeze
    Redeeze avatar
    4 posts
    Member since:
    Sep 2011

    Posted 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?

  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8269 posts
    Member since:
    Sep 2012

    Posted 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!

  6. Mike
    Mike avatar
    2 posts
    Member since:
    May 2012

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

Back to Top