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

EMPTY second-level Kendo hierarchy grids

0 Answers 52 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! 

No answers yet. Maybe you can help?

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