Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

MudDataGrid filterable row and column menu not working

$
0
0

I'm using mudDataGrid to display my data (IEnumerable), It works fine.I've also enable filterable to filter columns, But both filter row and column menu not working!The filter row is disabled (read-only) and in the column menu, The operator list is empty and does not have value field! (see my attached image).

mudDataGrid filterable not working

Here is my code :

<MudDataGrid T="DataRow" Items="this._lstRows" Filterable="true" FilterMode="DataGridFilterMode.ColumnFilterRow" QuickFilter="@FilterFunc"><ToolBarContent><MudText Typo="Typo.h6" Class="persianFontSans">@Report.ReportPersianName</MudText><MudSpacer /><MudTextField @bind-Value="_searchString" Placeholder="Search" Adornment="Adornment.Start" Immediate="true"                      AdornmentIcon="@Icons.Material.Filled.Search" IconSize="MudBlazor.Size.Medium" Class="mt-0 persianFontSans"></MudTextField></ToolBarContent><Columns>        @foreach (var dc in this.Data.Columns.OfType<DataColumn>())        {<PropertyColumn Property="x => x[dc.ColumnName]" Title="@dc.ColumnName" HeaderClass="persianFontSans" CellClass="persianFontSans"                            Format="@GetFormatString(dc)" />        }</Columns><PagerContent><MudDataGridPager T="DataRow" /></PagerContent></MudDataGrid>

Where is the problem and how to solve it?Thanks in advance


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>