Hello,
I finally wanted to enable virtualization on an SfGrid control.
I changed a previous demo solution as follows:
<SfGrid DataSource="Orders" @ref="mainGrid" Height="100%"
EnableVirtualization="true" EnableVirtualMaskRow="true">
The demo updates the contents of the rows every 2 seconds, and every 20 seconds, a new row is inserted.
It mimicks my main application, as I wanted virtualization to reduce overall server consumption.
But I've got two display problems.
1) When I set Height="100%", the scrolling doesn't work, the grid is within a 7000+px high div but only shows up the first ten entries, even when scrolling down.
Note how the About header goes behind the grid while scrolling then in front of it
See attached file virtual_100percent*.zip which contains a animated gif.
How can I stretch a working virtualized grid over the whole window?
2) For the sake of testing virtualization I set Height="600".
Unfortunately it is not working flawlessly.
Try to scroll down to the bottom of the grid, it is quite difficult actually to see the bottom of the grid (with OrderID = 200)
Once you see it, you'll notice that the line is duplicated whenever a new row is inserted.
After a while, the grid looks like that:
On a random basis, the display even gets stuck until you scroll, showing up only placeholders:
Is it a bug or something that I didn't configure properly?
You'll find the source code of the solution attached.
Can you please help.
Thank you very much.
Oops, as I attached the source code, the zipped GIF animation went away.
Here it is attached.
Please note, that in the solution I used an old version of the SyncFusion Library, I realized it only after my previous post.
Then I upgraded to 20.2.0.50, and the problems are still present.
Attachment: virtual_100percent_149b6bab.zip
Hi Kareem,
Currently we are checking the reported query at our end. We will update further details on or before 27 September 2022.
Until then we appreciate your patience.
Regards,
Naveen Palanivel
Hi Naveen, do you have any news about this problem please?
Thank you very much!
Hi Kareem,
Sorry for the inconvenience.
We are currently Validating the reported query with high importance at our end and we will update the further details within two days(Oct 4, 2022). Until then we appreciate your patience.
Regards,
Naveen Palanivel
Hi Kareem,
Query 1 : “set Height="100%", the scrolling doesn't work”
We checked your query and we would like to inform that, when given height 100% to the grid for element fill its parent container and it take the parent height to the grid. We can use calc function height:calc(100vh - 7rem) to set explicit height based on the browser layout and the rem values based on your browser page layout
We also attached the documentation for your reference.
Reference : https://blazor.syncfusion.com/documentation/datagrid/scrolling#responsive-with-parent-container
Please let us know if you have any concerns.
Query 2: “The line is duplicated whenever a new row is inserted”
Currently we are checking the reported query at our end. We will update further details on or before 5 Oct 2022.
Until then we appreciate your patience.
Regards,
Naveen Palanivel
Hi Kareem,
We have confirmed this as an issue and logged the defect report “ Grid display problems using Virtualization” for the same. Thank you for taking time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in our upcoming patch release which is expected to be rolled out on or before 3rd November , 2022.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
https://www.syncfusion.com/feedback/38353/grid-display-problems-using-virtualization
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”
Until then we appreciate your patience.
Regards,
Naveen Palanivel
Hi Kareem,
We are glad to announce that, we have included fix for the issue “ Grid display problems using Virtualization” in our release (20.4.0.41). So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the Nuget package for latest fixes and features from below.
Nuget : https://www.nuget.org/packages/Syncfusion.Blazor.Grid
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Please let us know if you have any concerns.
Regards,
Naveen