Syncfusion Blazor表格自定义列过滤错误

huangapple go评论66阅读模式
英文:

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.

Syncfusion Blazor表格自定义列过滤错误

答案1

得分: 1

添加 &lt;GridFilterSettings Type=&quot;Syncfusion.Blazor.Grids.FilterType.Menu&quot;&gt;&lt;/GridFilterSettings&gt; 或者使用 Excel/CheckBox 代替 Menu,除了 FilterBar 外。

根据这个链接,显然他们不允许将FilterBar与其他过滤类型混合使用。

英文:

Add &lt;GridFilterSettings Type=&quot;Syncfusion.Blazor.Grids.FilterType.Menu&quot;&gt;&lt;/GridFilterSettings&gt; 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.

huangapple
  • 本文由 发表于 2023年3月7日 03:10:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75654889.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定