forked from MudBlazor/MudBlazor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataGrid: Fix filter and several other bugs (MudBlazor#4942, MudBlazo…
- Loading branch information
1 parent
34e8a75
commit 3086de8
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...zor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSequenceContainsNoElementsTest.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@namespace MudBlazor.UnitTests.TestComponents | ||
<MudPopoverProvider></MudPopoverProvider> | ||
|
||
<MudDataGrid Items="@_items" Filterable="true"> | ||
<Columns> | ||
<Column T="Model" Field="@nameof(Model.Id)" /> | ||
<Column T="Model" Field="@nameof(Model.Name)" /> | ||
</Columns> | ||
</MudDataGrid> | ||
|
||
@code { | ||
private IEnumerable<Model> _items = new List<Model>() | ||
{ | ||
new Model("B"), | ||
new Model("A"), | ||
new Model("C"), | ||
new Model("C") | ||
}; | ||
|
||
public class Model | ||
{ | ||
public Guid Id { get; set; } | ||
public string Name { get; set; } | ||
|
||
public Model(string name) | ||
{ | ||
Id = Guid.NewGuid(); | ||
Name = name; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters