Grid.Blazor icon indicating copy to clipboard operation
Grid.Blazor copied to clipboard

How to Limit Range of Datetime Picker

Open khaledafify opened this issue 4 years ago • 2 comments

I'm asking about how can i control the range of years in the datetime picker

khaledafify avatar Feb 06 '21 10:02 khaledafify

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.

timbze avatar Mar 09 '21 20:03 timbze

I realize this may be a part of CRUD. I have not used CRUD myself.

timbze avatar Mar 09 '21 21:03 timbze