You can persist the expanded and collapsed state of specific parent rows in the Syncfusion Angular TreeGrid using the expandStateMapping property which have the value in data object of data source, that denotes the expand status of parent row.
For more information about the TreeGrid component, refer to this documentation.
For more information about TreeGrid's remote data binding feature, refer to this documentation.
• Checkout this project to a location in your disk. • Open the solution file using the Visual Studio 2022. • Restore the NuGet packages by rebuilding the solution. • Run the project.