Mudblazor Datagrid 自定义过滤器
我正在使用muddatagrid组件: https://dev.mudblazor.com/组件/datagrid#default-data-grid
我正在尝试添加一个自定义过滤器,该过滤器使您可以使用复选框从项目列表中进行选择以通过该列过滤。它的工作原理与您在此处看到的完全相同(单击列标题中的按钮): https://blazor.syncfusion.com/demos/datagrid/checkbox-filter/
我找不到使用muddatagrid组件的任何类似的示例。该组件已经在每列上提供了一个“过滤器”按钮,我只是无法弄清楚如何控制点击该按钮时如何弹出的内容。任何帮助都将不胜感激!
I'm using the MudDataGrid component: https://dev.mudblazor.com/components/datagrid#default-data-grid
I'm trying to add a custom filter that lets you select from a list of items using checkboxes to filter by that column. It would work exactly the same as what you see here (click button in column header): https://blazor.syncfusion.com/demos/datagrid/checkbox-filter/
I haven't been able to find any examples of something like this using the MudDataGrid component. The component already provides a "Filter" button on each column, I just cant figure out how to control what pops up when you hit that button. Any help at all would be much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许晚了,但如果我正确理解您的需求,请查看此示例,它们正是您所寻找的。打开
Sign
列的自定义过滤器。我希望它能帮助你。https://mudblazor.com/components/datagrid#advanced-filtering
Maybe late but if I understand correctly your needs, look at this sample, they do exactly what you searching for. Open the custom filter for the
Sign
columns. I hope it will helps you.https://mudblazor.com/components/datagrid#advanced-filtering