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

EMPTY second-level Kendo hierarchy grids

0 Answers 198 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avitot
Top achievements
Rank 1
Avitot asked on 30 Jul 2012, 09:09 AM
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:
  1. Run the application
  2. Expand the first row and all its child tables including its 2nd level child tables
  3. Expand the second row (parent table) and then all its child tables
  4. 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! 
Erich
Top achievements
Rank 1
commented on 11 Sep 2024, 03:47 PM

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

Neli
Telerik team
commented on 16 Sep 2024, 09:22 AM

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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Avitot
Top achievements
Rank 1
Share this question
or