Grid.Blazor
Grid.Blazor copied to clipboard
How to Limit Range of Datetime Picker
I'm asking about how can i control the range of years in the datetime picker
I think this has nothing to do with Grid.Blazor.
But you can do:
<InputDate @bind-Value="@_dateProperty" max="2021-03-15" />
Keep in mind that the max
attribute is not being enforced by the server, so the user could edit it in browser inspection and the server will still accept the value if it's higher than you had intended. Make sure you validate the value before saving etc.
I realize this may be a part of CRUD. I have not used CRUD myself.