使用过滤器行时,如何自定义整个网格的Telerik Blazor-UI网格过滤器选项?

发布于 2025-01-23 11:05:13 字数 1193 浏览 3 评论 0 原文

我有一个网格,例如下面。 filtermode 设置为 filterrow

@using Telerik.DataSource;

<TelerikGrid Data=@Products
            Pageable="true"
            Groupable="true"
            Sortable="true"
            FilterMode="GridFilterMode.FilterRow">
    <GridColumns>
        <GridColumn Field="ProductName" Title="Product Name" />
        <GridColumn Field="UnitPrice" Title="Cost">
    </GridColumns>
</TelerikGrid>

时网格的Kendo-UI版本,我们可以指定可滤波。选项在网格模式中或在全球范围内。

我一直在阅读 nofollow noreferrer“> blazor-ui api docs 但是我没有看到任何有用的东西。

似乎也没有指示一种重新删除过滤器选项的方法。

I have a grid such as the below. How can I restrict the filter options for all grid columns to only 'Equals' and 'Contains' when FilterMode is set to FilterRow?

@using Telerik.DataSource;

<TelerikGrid Data=@Products
            Pageable="true"
            Groupable="true"
            Sortable="true"
            FilterMode="GridFilterMode.FilterRow">
    <GridColumns>
        <GridColumn Field="ProductName" Title="Product Name" />
        <GridColumn Field="UnitPrice" Title="Cost">
    </GridColumns>
</TelerikGrid>

In the Kendo-UI version of the grid, we could specify the filterable.options in the grid schema, or globally.

I've been reading the Blazor-UI API docs, but I'm not seeing anything useful.

The docs for Filter-Row Config don't seem to indicate a way to restict the filter options either.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

因为看清所以看轻 2025-01-30 11:05:13

这将在以后的版本中进行,请在此页面

目前,只有使用过滤器模板才能通过自定义其中的所有内容来做到这一点

This will come in a future release, follow it at this page

For now, only using a filter template will let you do that by customizing everything in it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文