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