Collapsing error

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


1 Reply

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team July 21, 2022 02:13 PM UTC

Hi Sviatoslav


We have checked your reported problem by preparing sample with RowTemplate but we are unable to replicate the problem at our end. Refer to the sample link:-

https://www.syncfusion.com/downloads/support/forum/176324/ze/Test_(2)-1358702011.zip

https://www.syncfusion.com/downloads/support/directtrac/general/ze/demo39037427.zip


We need some more additional details to find the cause of the issue. Share us the following details.


  1. Complete TreeGrid code example(Along with RowTemplate)
  2. Customization code(if any) for RowTemplate as well as TreeGrid.
  3. Have you faced any Script Error on console window.
  4. Number of records you have used.
  5. If possible replicate it in the above sample and revert us back.
  6. NuGet package version details.


Regards,

Farveen sulthana T


Loader.
Up arrow icon