getSelectedRecords() is empty on rowSelected when virtualization is enabled and records grouped

Hello, we are using grid with very large dataset so we have enabled virtualization option and we use grid.getSelectedRecrods() on selection and deselection to known selected records.

Everything works fine until the user groups records by column(s), when records are grouped the  grid.getSelectedRecrods() returns empty array even if rows are selected.

I attached a sample app with a subset of 4 records reproducing that issue, every suggestions are appreciated.


Thanks in advance.


Attachment: syncfusionplayground_2a5b2c1.zip

4 Replies

VK Vasanthakumar K Syncfusion Team March 20, 2025 11:04 AM UTC

Hi Paolo Turello,


Greetings from Syncfusion support.


We have confirmed that this reported behavior is an issue on our end and logged it as “grid.getSelectedRecords() Returns Empty Array for Selected Rows in Virtualization enabled Grid with Grouping.” Thank you for taking the time to report this issue and help us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and the Product Development Life Cycle) and will include the defect fix in our upcoming patch release, which will be rolled out on or before April 08, 2025. Until then, we appreciate your patience.


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.


Feedback link: https://www.syncfusion.com/feedback/66390/grid-getselectedrecords-returns-empty-array-for-selected-rows-in-virtualized-grid


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". 


Regards,

Vasanthakumar K



PT Paolo Turello March 21, 2025 07:31 AM UTC

Hi Vasanthakumar,


let's wait for the patch, thank you.


Best regards.


Paolo



SI Santhosh Iruthayaraj Syncfusion Team March 24, 2025 01:47 PM UTC

Hi Paolo Turello,

We appreciate your patience and will provide an update regarding the fix on the promised date.

Thank you.

Regards,
Santhosh I



KM Kishore Muthukrishnan Syncfusion Team April 9, 2025 05:43 AM UTC

Hi Paolo Turello,

 

We are glad to announce that, we have included the fix for the issue “grid.getSelectedRecords() Returns Empty Array for Selected Rows in Virtualization enabled Grid with Grouping” in our 29.1.37 release. So please upgrade to our latest version of the Syncfusion package to resolve the reported issue.

 

Root Cause: The issue occurred because the condition was triggered twice when the dataSource had fewer records than required to fill a block, causing duplicate calls to getGroupVirtualRecordsByIndex.

 

Fix: The condition was updated to proceed only when the cache is empty, preventing duplicate method calls and ensuring correct record retrieval.

 

Feedback: https://www.syncfusion.com/feedback/66390/grid-getselectedrecords-returns-empty-array-for-selected-rows-in-virtualization

 

Sample: https://stackblitz.com/edit/angular-grid-u7mdtf-gofjnzx6?file=src%2Fapp.component.ts,src%2Fapp.component.html

 

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 further assistance.

 

Regards,

Kishore Muthukrishnan


Loader.
Up arrow icon