Selection is not working well when virtualization is enabled

Hi,

When enabling checkbox selection and virtualization, the selected rows are not correctly persisted whenever we show/hide children nodes afterwards.


Please see the repro link : https://blazorplayground.syncfusion.com/hXrdXoWLgebJNbhv

Check the 3 rows, then show some children nodes : the selection changes.


Looks like hundred of rows and virtualization + masked rows can also have a very weird behavior.

Finally is virtualization totally incompatible with selection ?


Regards,

Julien


1 Reply 1 reply marked as answer

SM Shek Mohammed Asiq Abdul Jabbar Syncfusion Team May 14, 2026 04:29 AM UTC

Hi Julien Barach,


Greetings from Syncfusion support.


We have validated your query related to selection persistence in TreeGrid when virtualization is enabled. To retain the selection while using virtualization, you need to enable the PersistSelection property within the TreeGridSelectionSettings.


Code snippet

        <TreeGridSelectionSettings PersistSelection="true"  EnableToggle="true" Type="Syncfusion.Blazor.Grids.SelectionType.Multiple" />

 


Important Note

To ensure that selection persistence works correctly, it is mandatory to define a Primary Key column in the TreeGrid. This allows the component to uniquely identify records across virtualization and data operations.


Reference Documentation

🔗 https://blazor.syncfusion.com/documentation/datagrid/checkbox-selection#persist-selection


Sample:

https://blazorplayground.syncfusion.com/LjBxZeMgBTTTfQqP


Please let us know if you have any other queries.


Regards

Shek


Marked as answer
Loader.
Up arrow icon