MudBlazor/MudBlazor

MudDataGrid - filters added via AddFilterAsync do not show filter criteria in filter row

已關閉

#7,371 建立於 2023年8月18日

 (8 則留言) (2 個反應) (0 位負責人)C# (1,631 個分叉)batch import
bughas workaroundhelp wanted

倉庫指標

星標
 (10,394 顆星)
PR 合併指標
 (平均合併 6天 6小時) (30 天內合併 108 個 PR)

描述

Bug type

Component

Component name

MudDataGrid

What happened?

When I programmatically use AddFilterAsync to add filters to MudDataGrid, I would expect the filter criteria to be populated into the filter row on the report, and indicate on the filter icons that the column is filtered. Instead, the filter is applied to the data grid, but there is no indication that the grid is filtered.

Expected behavior

Filter criteria populated in filter row. For example, if there is a text box for filtering, and you added a string filter definition, the string should be shown in the filter. In addition, the filter icon should change to indicate the column is filtered.

Reproduction link

ColumnFilterRow: (https://try.mudblazor.com/snippet/mOmnEsmlpLqqydsS) ColumnFilterMenu: https://try.mudblazor.com/snippet/QYmxEMwlpBXHKdsO

Reproduction steps

n/a

Relevant log output

No response

Version (bug)

6.2.3

Version (working)

No response

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

On what operating system are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

貢獻者指南