We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to stop Virtualization collapsing all groups??

I am using row virtuialization in a grid, with grouping, and on dataload it always starts collapsing all groups. I know I can issue an ExpandAll... but this is extra delay & terrible UI, given that under no circumstance in this use (typical) do I want collapsed groups.

There is a property IsExpanded, but this does not seem to work.

How does one use Row virtualisation, without having to manually expand all groups on each load, and incur the delay involved in a double render?

Ph


5 Replies

MS Monisha Saravanan Syncfusion Team April 10, 2023 12:45 PM UTC


Hi Phil,


Greetings from Syncfusion support.


Query: “How to stop Virtualization collapsing all groups?”


We would like to inform that by default when enabling virtualization in DataGrid will show all the grouped columns in collapsed state. This is the default behavior of DataGrid. Because while using virtualization only the current view elements will be rendered. So it is not possible to expand all the grouped records with virtualization. Also we would like to inform that we have lazy loading feature in DataGrid which helps in improving the performance for larger DataGrid. We have documented this in the below UG section. So kindly check the documentation for additional information.


Reference: https://blazor.syncfusion.com/documentation/datagrid/lazy-load-grouping#lazy-load-grouping-with-virtual-scrolling



If we misunderstood your query or is you still face difficulties then kindly share the below details to proceed further at our end.


  1. Share us the Grid code snippet.
  2. Share us the video demonstration of the issue.
  3. There is a property IsExpanded, but this does not seem to work - > Kindly explain the way you have implemented this property at your end.
  4. If possible share us an simple sample demonstrating the issue.


Above requested details will be very helpful in validating the reported query at our end and provide solution as early as possible.


Regards,

Monisha



PH Phil Holmes April 10, 2023 11:52 PM UTC

Hi Monisha,

It may be the current default behavior, but that's only because someone chose to do it that way. It is possible, because already a call to .ExpandAllGroupAsync() does exactly that, and also because the default behaviour of paging is to do exactly as I have asked. It defaults to expanded. Row Virtualization is no less compatible with expanded groups than paging is, and this is demonstrated by ExpandAllGroupsAsync().

It would be much better if this behaviour was settable, so that, for example if one has a dataset of just 2 or 300 rows, and wants them to display expanded, then this can be done without a double render.

I hope this can be fixed.

Thanks,
Phil




MS Monisha Saravanan Syncfusion Team April 13, 2023 03:38 AM UTC

Hi Phil,


We would like to inform that it is impossible to expand all the grouped records at initial rendering. As It leads to performance degradation. So it is not feasible to achieve your requirement at our end


Please let us know if you have any concerns.


Regards,

Monisha



PH Phil Holmes April 14, 2023 04:09 AM UTC

I suggest you update the documentation then to add it to the list of features that are incompatible with your implementation of virtualisation.

Regards,
Phil



MS Monisha Saravanan Syncfusion Team April 17, 2023 12:30 PM UTC

Hi Phil,


We have logged an documentation improvement task and this will be reflected in our UG documentation in any our upcoming releases.


Until then we value your patience.


Loader.
Live Chat Icon For mobile
Up arrow icon