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

3-level hierarchical Grid

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leader
Top achievements
Rank 1
Leader asked on 27 Jun 2013, 02:36 PM
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?

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 01 Jul 2013, 02:11 PM
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!
Tags
Grid
Asked by
Leader
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or