need help understanding subgrids - ussues with grid height using 3 levels of dojo subgrids
Hi. Firstly, I'd like to better understand the dojo subgrid example. Why do they need to use setTimeout to build the subgrid? How exactly does the cacheHeight work? I see the cacheHeight is the size of the grid just created, but it seems that the div height is 120px because the grid is undefined. Why return the div anyway as a "placeholder"? Should I use autoheight=true for grids / subgrids?
I have a dojo grid, that contains subgrids, like the "subgrid" test example. I am using dojo 1.1.1. My grid has rows that expand to show a subgrid, and that subgrid can expand to show another subgrid.
1st level subgrid works fine, using a paradigm like the subgrid example supplied with dojo. However, the 3rd level was much more complicated. When I got that working I had weird grid height behavior. I would see that the 3rd level grid was created but the main grid height would not update and you can't see the grids.
After studying the problem, I think my issue is that I have variable height subgrids. The example frequently results in using the default "120px". I think the example depends on having the div placeholder set the height for the cell that contains the subgrid. Although I don't completely believe this because the 1st/2nd levels work fine, even when level 2 has many rows, and the div height is always 120 the 1st time!
Any info on this would be greatly appreciated!
Dojo Forum