I made a 2-level hierarchy using html helper attached here. As I navigated though the second level child tables, some of them are not displaying any data at all. To reproduce this issue:
- Run the application
- Expand the first row and all its child tables including its 2nd level child tables
- Expand the second row (parent table) and then all its child tables
- As a result, the second row's 2nd level child tables don't display any record.
But when I debug it, the controller returns the correct data. I have a thought that Kendo grid might just be confused where to populate data since my 2nd level child grids have duplicating names. And it seemed to be just navigating through the DOM to find the first matching grid name (as its only parameter basis). There are possibilities that grid name duplicates are being produced having only the ID value of the parent data as its signature. Or did I miss anything with my code?
How would I get the parent table ID (that is, the parent table of the 2nd level child grid == the first level child table) so that I can append it to the current child table ID like:
.Name("childGrid_#=ID#_" + parentTableID )
Is there any better way that you might suggest in preventing a duplicated grid name?
Any thoughts might be a great help.
Thanks in advance!
How would I get the parent table ID (that is, the parent table of the 2nd level child grid == the first level child table) so that I can append it to the current child table ID like:
.Name("childGrid_#=ID#_" + parentTableID )
Is there any better way that you might suggest in preventing a duplicated grid name?
Any thoughts might be a great help.
Thanks in advance!
Hello Avitot,
Did you ever find an answer to this. I am currently running into the same issue where my first child grid displays but all child grids after the first one do not show any data and the name of those grids are the same as the first child grid.
Thanks
Hi Erich,
Could you please provide more details about the configuraton used on your side and how the child Grid are created? Are you using Kendo UI for jQuery ot Telerik UI for ASP.Net MVC/Core wrappers?
In the Demo linked here you will find an example of two-level hierarchy Kendo UI for jQuery Grid that could be helpful - https://demos.telerik.com/kendo-ui/grid/hierarchy.
Please provide more details about the exact scenario and implementation on your side, so we could get a better idea and provide further assistance.
Looking forward to your reply.
Regards,
Neli