Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

Currently, Load Child on Demand is not supported when using Virtual Scrolling in the TreeGrid component due to fundamental differences in data rendering and retrieval. Load Child on Demand dynamically fetches and renders child records only when a parent row is expanded, whereas Virtual Scrolling optimizes performance by rendering only the visible rows in the viewport and fetching data dynamically as the user scrolls. This creates a conflict, as Virtual Scrolling continuously removes and re-renders rows based on scrolling position, which disrupts the tracking and persistence of expanded parent rows and their child records. Additionally, since Virtual Scrolling does not maintain an in-memory representation of all rows, expanding a parent row may cause previously loaded child rows to be lost upon scrolling. To work around this limitation, you can disable Virtual Scrolling and use alternatives like paging or infinite scrolling for better compatibility with Load Child on Demand.

Ensure below cases while implementing.

Issue 1: 
Misalignment issue

  1. Expand task 1 and 2.
  2. scroll down to task 26 and expand it.
  3. Now select the 24th taskbar note that it was misaligned and 35th taskbar is displayed instead of 24.
Empty




Issue 2: W
hite space issue 

  1. scroll down to the last task and expand it.
  2. Now scroll from there you will notice the white space at the top.

Empty






Issue 3: ExpandAll/CollapseAll not woking with loadOnDemand since we added the expand action codes in homeController file.

Replication:

  • Unzip the service folder.
  • Launch the extracted project in Visual Studio and run it using HTTPS.
  • Do expandAll/collapseAll action.
  • Observe that, misaligned records rendered, white space issue occurred while scrolling.


Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/treegridLoadOnDemand1179700990.zip