Hi Mihai,
Thanks for contacting Syncfusion Forum.
Query: Tree grid filtering to only contain child elements values
To achieve your requirement we suggest you to use our HierarchyMode as “Child” in FilterSettings of Treegrid. By default the HierarchyMode is “Parent”.
Code example
|
<SfTreeGrid DataSource="@TreeData AllowFiltering="true" IdMapping="TaskId" ParentIdMapping="ParentId">
<TreeGridFilterSettings HierarchyMode="@FilterHierarchyMode.Child" ></TreeGridFilterSettings>
<TreeGridColumns>
<TreeGridColumn HeaderText="Task Details" Width="300">
<TreeGridColumns>
……………………… . .
</TreeGridColumns>
</TreeGridColumn>
</TreeGridColumns>
</SfTreeGrid>
@code{
……………………… . .
protected override void OnInitialized()
{
……………………… . . }
} |
Please refer the below help documentation link,
Please get back to us, If you need more assistance.
Regards,
Gowri V L