How to add TreeList into template of Grid?

2 posts, 1 answers
  1. VnDevil
    VnDevil avatar
    59 posts
    Member since:
    Oct 2012

    Posted 19 Nov 2015 Link to this post

    Hi Telerik,


    I was trying add TreeList in Grid with ClientDetailTemplate but It's not running, I afraid Grid is not support ClientDetailTemplate with TreeList,
    Can you please give me a demo about this issue?
    Thanks alot

  2. Answer
    Venelin avatar
    352 posts

    Posted 23 Nov 2015 Link to this post

    Hello VnDevil,

    Yes, currently this scenario is not supported, but you can initialize the treelist on client instead. Try the following:

    The grid:
        .Events(events => events.DetailExpand("detailsExpand"))

    <script id="template2" type="text/kendo-tmpl">
        <div id="treelist_#=EmployeeID#" class="treelist"></div>

    DetailsExpanded handler:
    function detailsExpand(item) {

    Then, through the item parameter you can access your data.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top