3-level hierarchical Grid

2 posts, 0 answers
  1. Leader
    Leader avatar
    8 posts
    Member since:
    Jun 2013

    Posted 27 Jun 2013 Link to this post

    I have a three-level hierarchy in my data, and want to display this in a hierarchical grid. By following the examples in the demo section, I can create the grid to show Level 1 which expands to display results from Level 2 of the hierarchy. And, I can create a Grid that shows Levels 2 and 3. I can also display the three individual levels in grids of their own. What I cannot manage is having Levels 1, 2 and 3 on the same Grid. Firebug reports that there is an error in the template for Level 2 of the hierarchy - but, as mentioned, when this grid is rendered on its own, it functions correctly.

    Maybe answers to the following question would help me;

    • Do the grids for Levels 2 and 3 both have to be rendered using the 'renderInTemplate' method?
    • Does it matter what order the grids are rendered in the html page?
    • My filter for Level 3 checks a value from Level 2 - should it also include a value from Level 1?
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 01 Jul 2013 Link to this post

    Hi Andrew,

     
    Basically grids on each level after the first one should be rendered using the "renderInTemplate". Also please note that currently the "detailTemplateId" property is not escaped when the "renderInTemplate" is used which results in "Invalid template" errors, however this issue is already fixed on our side and the fix will be available with next internal build. As a workaround until the fix is released (to the end of the week) you can manually modify the following file:

    • ..\lib\Kendo\Template.php: 
      Line 13: return "kendo.template($('\\#".$this->value."').html())";

    Kinds Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top