EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sectioni on March 16, 2020, 04:22:57 AM



Title: Nested subgrids
Post by: sectioni on March 16, 2020, 04:22:57 AM
When I look at the Subgrids demo, after expanding a row, it gets the data from the server.
When I look at the Nested Subgrids demo, all of the children info is there from the start.

Is it not possible to create a nested subgrid with unlimited number of levels, and getting the data from the server when expending the row of each level?


Title: Re: Nested subgrids
Post by: jarry on March 18, 2020, 01:29:55 AM
The subgrid has no limitation on levels. Please set the 'url' property instead of 'data' property to retrieve data from remote server.


Title: Re: Nested subgrids
Post by: sectioni on March 18, 2020, 02:52:39 AM
I'm afraid I don't understand how to implement multi-levels.

in the demo onExpandRow it's creating another datagrid using "ddv.datagrid ({...})"

so in order to have another level, I will have in that second grid to have another onExpandRow event that creates a third grid and so on?