Hi Andrew,
Query#:- How would I filter programmatically values
"Parent Task 1" and "Parent Task 2"
From your query, we understood that you need to dynamically
filter the values. We have achieved your requirement using FilterByColumnAsync
method of the TreeGrid on external button click.
Refer to the code below:-
|
SfTreeGrid<BusinessObject>
teamMemberGrid { get; set; }
private async Task
FilterHandler()
{
await teamMemberGrid.FilterByColumnAsync("TaskName", "equal", new
List<string> { "Parent Task 1",
"Parent Task 2" }, "or"); //use FilterByColumnAsync
method
}
|
Documentation link:- https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_FilterByColumnAsync_System_String_System_String_System_Object_System_String_System_Nullable_System_Boolean__System_Nullable_System_Boolean__System_String_System_String_
Sample
link:-
https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionTreeGridFilter-main1644753035.zip
If we misunderstood your query, please share detail
Explanation or Video demonstration to proceed further.
Regards,
Farveen sulthana T