英文:
Syncfusion Blazor grid custom column filtering error
问题
我想在三个网格列上使用不同的筛选设置。第一列使用菜单筛选,第二列使用FilterBar筛选,第三列使用Excel筛选。
<SfGrid DataSource="@Employees" AllowFiltering="true">
<GridColumns>
<GridColumn Field="FirstName" HeaderText="First Name" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.Menu })"></GridColumn>
<GridColumn Field="LastName" HeaderText="Last Name" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.FilterBar })"></GridColumn>
<GridColumn Field="@nameof(childRecord.TEIDS_ID)" HeaderText="ID" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.Excel })"></GridColumn>
</GridColumns>
</SfGrid>
Blazor Web应用程序显示所有三列具有相同的筛选选项:FilterBar。我想解决这个不一致性。
英文:
I want to have different filter settings on three grid columns. The first column has Menu filtering, the second column has FilterBar filtering, and the third column has Excel filtering.
<SfGrid DataSource="@Employees" AllowFiltering="true">
<GridColumns>
<GridColumn Field="FirstName" HeaderText="First Name" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.Menu })"></GridColumn>
<GridColumn Field="LastName" HeaderText="Last Name" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.FilterBar })"></GridColumn>
<GridColumn Field="@nameof(childRecord.TEIDS_ID)" HeaderText="ID" FilterSettings="@(new FilterSettings() { Type = Syncfusion.Blazor.Grids.FilterType.Excel })"></GridColumn>
</GridColumns>
</SfGrid>
The Blazor web application shows all three of the columns with the same filtering option: FilterBar. I would like to fix this discrepancy.
答案1
得分: 1
添加 <GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
或者使用 Excel/CheckBox 代替 Menu,除了 FilterBar 外。
根据这个链接,显然他们不允许将FilterBar与其他过滤类型混合使用。
英文:
Add <GridFilterSettings Type="Syncfusion.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
or use either of Excel/CheckBox in place of Menu, except for FilterBar.
They apparently do not allow mixing of FilterBar with other filter types according to this.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论