-- Update --
I found the issue. When I put this command inside the treegrid, EnableCollapseAll = "true" , it caused the undesired behavior. If I remove this, the grid works as expected.
--- Original ---
When doing a search which results in the parent and a child both containing the search criteria, the search results show two rows each showing only the parent. If you click on the expand arrow, the child never appears. For example:
Parent: {Id=1, Name=Charlie, Code=CHAR}
Child: {Id=2, ParentId=1, Name=Charlie 1, Code=C1}
Search Criteria = char
Tested with FilterHierarchyMode.Parent, Both, Child, and None.
< EjsTreeGrid ID="TreeGrid" @ref="TreeGrid" DataSource="@TreeData" IdMapping="OrgUnitId" ParentIdMapping="ParentOrgUnitId" TreeColumnIndex="1"
AllowPaging="true" AllowExcelExport="true" AllowFiltering="true" AllowMultiSorting="true" AllowPdfExport="true"
AllowReordering="true" AllowResizing="true" AllowRowDragAndDrop="true" AllowSorting="true"
EnableAltRow="true" EnableCollapseAll="true" EnableHover="true" ShowColumnMenu="true"
Toolbar="@(new List() { "Search" })">
< TreeGridSearchSettings Operator="Operator.Contains" Fields="@(new string[] { "Code", "Name", "LegalName" })" HierarchyMode="FilterHierarchyMode.Both">
< TreeGridEvents TValue="Node" RowSelected="RowSelectHandler" OnRecordDoubleClick="DoubleClicked">
< TreeGridSelectionSettings Type="Syncfusion.EJ2.Blazor.Grids.SelectionType.Single" Mode="Syncfusion.EJ2.Blazor.Grids.SelectionMode.Row">
< /TreeGridSelectionSettings>
< TreeGridPageSettings PageSizeMode="PageSizeMode.Root" PageSize="50">
< TreeGridEditSettings AllowAdding="false" AllowEditing="false" AllowDeleting="false" Mode="Syncfusion.EJ2.Blazor.TreeGrid.EditMode.Row">
< /TreeGridEditSettings>
< TreeGridFilterSettings Type="Syncfusion.EJ2.Blazor.TreeGrid.FilterType.Menu">
< TreeGridColumns>
< TreeGridColumn Field="Code" HeaderText="Code" Width="20">
< TreeGridColumn Field="Name" HeaderText="Name" Width="40">
< TreeGridColumn Field="LegalName" HeaderText="Legal Name" Width="40">
< TreeGridColumn Field="ExternalCode" HeaderText="Ext. Code" Width="20">
< /TreeGridColumns>
< /EjsTreeGrid>
This shows the search applied. Search is on Code, Name, and Legal Name fields.
This shows the tree grid without a search applied: