We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93bab57 commit 540278eCopy full SHA for 540278e
BlazorBootstrap.Demo.RCL/Components/Pages/Grid/03-filters/Grid_Demo_05_Enum_Filters.razor
@@ -1,4 +1,6 @@
1
-<Grid TItem="User"
+@using System.ComponentModel.DataAnnotations
2
+
3
+<Grid TItem="User"
4
Class="table table-hover table-bordered table-striped"
5
DataProvider="UsersDataProvider"
6
AllowFiltering="true"
@@ -15,7 +17,7 @@
15
17
@context.DOB
16
18
</GridColumn>
19
<GridColumn TItem="User" HeaderText="Status" PropertyName="Status" FilterTextboxWidth="170">
- @context.Status
20
+ @(typeof(UserStatus).GetDisplayName(context.Status))
21
22
</GridColumns>
23
@@ -60,6 +62,7 @@
60
62
public enum UserStatus
61
63
{
64
Registered,
65
+ [Display(Name = "Pending Verification")]
66
VerificationPending,
67
Verified
68
}
0 commit comments