Differences between SelectedRecords and SelectedRowIndexes with infinite scroll

Hi,


Before using infinite scroll on my grids, I used SelectedRecords to know what or how many rows are selected.

When I enable infinite scroll and PersistSelection to true the behavior of the grid is correct but SelectedRecords doesn't update when you check all then scroll down to load more items.


Repro link : https://blazorplayground.syncfusion.com/BDLytqVVLnZAcDIn

  1. Check all (25 items loaded and selected)
  2. Scroll to load more (the grid show thats 50 items are selected)
  3. Click "Show selection" to display differences between SelectedRecords and SelectedRowIndexes

SelectedRowIndexes is correct but not SelectedRecords that stays to 25.
Is it a bug or a feature ?

Regards



8 Replies 1 reply marked as answer

PS Prathap Senthil Syncfusion Team April 3, 2025 04:36 PM UTC

Hi Julien Barach,

We are able to reproduce the problem where the SelectedRecords do not get retrieved correctly when PersistSelection is enabled. We are currently validating the reported issue as a high priority on our end and will update you with further details within two days (April 7th, 2025). Until then, we appreciate your patience.


Regards,
Prathap Senthil



PS Prathap Senthil Syncfusion Team April 7, 2025 02:06 PM UTC

Thanks for your patience,

We have confirmed that this is an issue and logged a defect report titled  “Incorrect records returned by GetSelectedRecordsAsync with EnableInfiniteScrolling in Grid” This fix will be included in our weekly patch release, which is expected to be rolled out on April 22nd, 2025. You can now track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.    

Incorrect records returned by GetSelectedRecordsAsync with EnableInfiniteScrolling in Grid in Blazor | Feedback Portal


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”

We will get back to you once the release is rolled out. Thanks for your understanding.



PS Prathap Senthil Syncfusion Team April 23, 2025 03:13 AM UTC

We apologize for the inconvenience caused.

We were unable to include the fix in today patch release. However, we want to assure you that the fix will be included in our weekly patch release, scheduled on or before April 29th, 2025.We appreciate your patience and understanding.



NP Naveen Palanivel Syncfusion Team April 29, 2025 05:21 AM UTC

We sincerely apologize for any inconvenience and delay you may have experienced.


We were unable to include the fix in tomorrow’s patch release because we have changed the flow of persisted selection and need more time to ensure the fix is properly validated on our end. However, we want to assure you that the fix will be included in our Volume 1 Service Pack release, scheduled for mid-May 2025. We will update you once the release is rolled out.




PS Prathap Senthil Syncfusion Team May 15, 2025 07:14 AM UTC

Thanks for your patience.


We are glad to announce that, we have included the fix for the “Incorrect records returned by GetSelectedRecordsAsync with EnableInfiniteScrolling in Grid” in our “29.2.4” Volume 1 SP release 2025 . 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


Release Notes: https://blazor.syncfusion.com/documentation/release-notes/29.2.4?type=all

Root Cause:

In the DataProcess method the selectedrowindex is updated correctly when we load the data. For the selected records we did not handle only initial loaded records alone rendered and updated in selected records.


Corrective Actions Taken:

  the SetPersistData with passing the checkstate in the data process when we load the datas when datasource is null for remote data.


Marked as answer

MM mudasir mudasir javed replied to Prathap Senthil May 15, 2025 09:04 AM UTC

Before using infinite scroll on my grids, I used SelectedRecords to know what or how many rows are selected.

When I enable infinite scroll and PersistSelection to true the baixar video do pinterestbehavior of the grid is correct but SelectedRecords doesn't up date when you check all then scroll down to load more items.



PS Prathap Senthil Syncfusion Team May 16, 2025 09:04 AM UTC

Based on the reported problem, we would like to inform you that the issue has been addressed and fixed in version 29.2.4 (Volume 1 SP release). For your reference, we have attached a sample .
Sample: https://blazorplayground.syncfusion.com/embed/VjLejeMRskTypTfO?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5

To help us investigate further and ensure the issue is fully resolved in your specific scenario, we kindly request the following details:

  • Could you please share the Grid code snippet along with the model class?
  • Could you please confirm whether you are using data binding via the DataSource property or through SfDataManager?
  • To assist with our analysis, could you provide a simple reproducible sample, preferably with duplicate data from your database, that demonstrates the issue? This will help us identify and resolve the problem more effectively.
  • Alternatively, you may try to reproduce the issue using the attached sample and share your observations with us.

Your cooperation in providing this information will greatly assist us in reproducing the issue and delivering a timely resolution. We look forward to your response.



JB Julien Barach May 16, 2025 09:11 AM UTC

mudasir mudasir javed is a bot (look at the link in the message + the message is a copy of the initial post), the issue of this thread is resolved with 29.2.4.

Please delete bot posts.


Loader.
Up arrow icon