I am using a component and a row template. collapse of the second level and beyond does not work correctly. I am attaching the code and demo video
<SfTreeGrid @ref="@tgTasks"
ID="tgTasks"
Width="calc(100vw - 50px)"
Toolbar="@(new List<string>() {"Search"})"
DataSource="@Items" TValue="ProjectItem"
IdMapping="Id"
AllowFiltering="false"
AllowRowDragAndDrop="false"
EnableHover="true"
AllowSorting="true"
AllowResizing="true"
ParentIdMapping="ParentNodeId"
Height="calc(100vh - 550px)"
RowHeight="34"
AllowPaging="true">
<TreeGridSelectionSettings Type="Syncfusion.Blazor.Grids.SelectionType.Single"></TreeGridSelectionSettings>
<TreeGridPageSettings CurrentPage="_currentPage" PageSizeMode="PageSizeMode.All" PageSize="@((int) _itemsOnPage)" PageSizes="@(new[] {10, 20, 50})"></TreeGridPageSettings>
<TreeGridSearchSettings IgnoreCase="true" HierarchyMode="FilterHierarchyMode.Both" IgnoreAccent="true"></TreeGridSearchSettings>
<TreeGridEvents Created="CreatedTree" Collapsed="Collapsed" Expanded="Expanded" OnActionBegin="ActionBeginHandler" ResizeStopped="ResizeStoppedHanlder" TValue="ProjectItem"></TreeGridEvents>
<TreeGridFilterSettings Type="Syncfusion.Blazor.TreeGrid.FilterType.Menu" HierarchyMode="FilterHierarchyMode.Both"></TreeGridFilterSettings>
<TreeGridTemplates>
<RowTemplate>
Attachment: Demo_error2.mov_6abdc316.zip