Hi,
Does you filtering logic have some kind of limitation regarding mixing the filters? (In particular mixing FilterBar with anything else). I was unable to find and piece of documentation which would be describing this limitation.
Example:
<SfGrid TValue="GetProjectDto" AllowPaging="true" AllowFiltering="true" ContextMenuItems=@(new List<object>() {"Edit", "Delete", "Save"}) >
<SfDataManager Url="https://localhost:44301/api/project" Adaptor="Adaptors.WebApiAdaptor"></SfDataManager>
<GridPageSettings PageSize="7"></GridPageSettings>
<GridFilterSettings Type ="Syncfusion.Blazor.Grids.FilterType.Excel"></GridFilterSettings>
<GridColumns>
<GridColumn Field=@nameof(GetProjectDto.Id) HeaderText=@nameof(GetProjectDto.Id) IsPrimaryKey="true" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Name) HeaderText=@nameof(GetProjectDto.Name) FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.FilterBar })" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Value1) TextAlign="TextAlign.Right" Width="120" FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.Menu })"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Value2) TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.ProjectType) HeaderText="Project Type" FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.CheckBox })" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid>
The result of the following code looks as follows:
The filter button for column 2 is not working + there should be a filter bar present above it.
However if I were to change Filter type for a grid to FilterBar
<SfGrid TValue="GetProjectDto" AllowPaging="true" AllowFiltering="true" ContextMenuItems=@(new List<object>() {"Edit", "Delete", "Save"}) >
<SfDataManager Url="https://localhost:44301/api/project" Adaptor="Adaptors.WebApiAdaptor"></SfDataManager>
<GridPageSettings PageSize="7"></GridPageSettings>
<GridFilterSettings Type ="Syncfusion.Blazor.Grids.FilterType.FilterBar"></GridFilterSettings>
<GridColumns>
<GridColumn Field=@nameof(GetProjectDto.Id) HeaderText=@nameof(GetProjectDto.Id) IsPrimaryKey="true" TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Name) HeaderText=@nameof(GetProjectDto.Name) FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.FilterBar })" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Value1) TextAlign="TextAlign.Right" Width="120" FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.Menu })"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.Value2) TextAlign="TextAlign.Right" Width="120"></GridColumn>
<GridColumn Field=@nameof(GetProjectDto.ProjectType) HeaderText="Project Type" FilterSettings="@(new FilterSettings{Type = Syncfusion.Blazor.Grids.FilterType.CheckBox })" TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid>
As you can per column filter settings are getting completly ignored.
Is this the undocumented framework limitation or am I missing something.