Hi Harry,
Sorry about the inconvenience caused.
Currently there is no support for load on demand as like your requirement, but it has built-in support to render large data along with multi-level hierarchies in virtualization approach by using “EnableVirtualization” property. In virtualization mode the Treegrid control renders or we can able to visualize only few rows of data at a time, depending upon the height of the Treegrid control (viewport/view height), thereby increasing the responsiveness in Treegrid while scrolling, expanding, collapsing and other such actions. The child records won’t get render until we expand its parent as per your requirement. In virtualization concept, the scrollbar or scroller of Treegrid is intended to render as if there are large data, but actually the rows which are viewable alone are rendered, even while scrolling the Treegrid content. You can achieve the virtualization in Treegrid with below code snippet,
@(Html.EJ().TreeGrid("TreeGridContainer"). //… EnableVirtualization(true) ) |
We have also prepared a sample with 30000 records in virtualization mode. And please find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/forum/119975/ze/TreeGridLargeData-982025057
Is this your requirement or else please get back to us with more details about your browser version? So that we can serve you better.
Regards,
Mahalakshmi K.
Hi Harry,
Sorry about the inconvenience caused.
For your kind information, we can render more than 10000 records of JSON data in virtualization mode within 3 seconds. But in case of self-reference data source we need to convert all the 10000 flat records into hierarchical data source to make sense. So obviously it takes some time more than to render JSON data source. We are also analyzing on this to optimize the conversion process for converting the flat data into hierarchical data.
Can you please share us the maximum level of hierarchy you are using in your project ? Also if possible please share the data you are using to render in TreeGrid and the browser you using to run the project, This will be helpful for us to serve you better.
Please let us know if you need further assistance on this.
Regards,
Mahalakshmi K.
Hi Harry,
Sorry for the inconvenience caused.
For your kind information, we can also reproduce the time delay while rendering TreeGrid with large data in virtualization mode with “EnableCollapseAll” is enabled. So we are analyzing on the various scenarios to optimize the time taken to load large data with ‘EnableCollapseAll’ property enabled, and as we are analyzing with our source architecture to optimize the performance we need some more time for this. So we will update the status of this in 2 business days (08/26/2015).
Regards,
Mahalakshmi K.
We can also able to reproduce the time delay while loading Treegrid in “EnableCollapseAll” enabled mode with large Data in self reference data source. Hence we have logged a feature report regarding this. A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Please let us know if you need further assistance on this.
Regards,
Mahalakshmi K.