Mixing FilterBar Filter with other Filter Types

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.


1 Reply

VN Vignesh Natarajan Syncfusion Team November 8, 2021 04:01 AM UTC

Hi Kamil,  
 
Greetings from Syncfusion support.  
 
Query: “Mixing FilterBar Filter with other Filter Types” && “I was unable to find and piece of documentation which would be describing this limitation. 
 
We have analyzed your query and we would like to inform you that it is not possible to render different filter type to different column along with FilterBar type. We can switch between Excel, Menu and CheckBox filtering type only. Because Filterbar type require UI level changes.   
 
Refer the below documentation for your reference 
 
 
So we request you to switch between Excel, Menu and Checkbox Type filter. Also we have considered an improvement to document this limitation in our UG documentation and it will be refreshed as early as possible.    
 
Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon