Hi,
I would like to add the global data search function in three tables represented in three nested grids.
For example, in a hierarchical grid structure like the one you have as an example: Employee -> Orders -> Customers.
https://blazor.syncfusion.com/demos/datagrid/hierarchy-grid/
How could I search all three grids at the same time?
Thanks
Ok, but would it be possible that the search was done only in the last nested grid Customers as in the image?
How could I place the search button in the top left?
Thanks
|
<SfGrid DataSource="@Employees">
<GridTemplates>
<DetailTemplate>
@{
var employee = (context as EmployeeData);
<SfGrid TValue="Order" Query="@GetEmployeesQuery(employee)" AllowPaging="true">
<GridPageSettings PageSize="8"></GridPageSettings>
<SfDataManager Url=https://js.syncfusion.com/demos/ejservices/Wcf/Northwind.svc/Orders CrossDomain="true"></SfDataManager>
<GridTemplates>
<DetailTemplate Context="CustomerContext">
@{
var orders = (CustomerContext as Order);
//last level of hierarchy Grid
<SfGrid TValue="CustomerDetails" Query="@GetOrderQuery(orders)" Toolbar="@(new List<string>() { "Search" })">
<SfDataManager Url=https://js.syncfusion.com/demos/ejservices/Wcf/Northwind.svc/Customers CrossDomain="true"></SfDataManager>
<GridColumns>
<GridColumn Field=@nameof(CustomerDetails.CustomerID) HeaderText="Customer Name" Width="110"></GridColumn>
. ..
</GridColumns>
</SfGrid>
}
</DetailTemplate>
</GridTemplates>
. ..
</SfGrid>
}
</DetailTemplate>
</GridTemplates>
. ..
</SfGrid> |