Closed nlpMbordogna closed 2 years ago
I'm unable to reproduce such exception using our demos with the same configuration:
You can attach the source code to debug the exception at your end.
Actually that isn't the same setup....
Another note is your event is sending back datetime not datetime offset, this is because your TValue isn't set to DatetimeOffset?. its a minor fix to do the check and the proper cast based on TValue.
[2021-10-20T19:41:52.472Z] Error: System.InvalidCastException: Unable to cast object of type 'System.DateTime' to type 'System.Nullable
1[System.DateTimeOffset]'. at Radzen.Blazor.RadzenDatePicker
1.ParseDate() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle) e.log @ blazor.server.js:21html brackets removed so it the code can show in Git
` RadzenDatePicker TValue="DateTimeOffset?" DateFormat="@this.FormatMask" ValueChanged="@(async (value) => { await this.ValueChanged(value); })" Value="@this.LowerBoundValue" Name="from_date" /
@code{ public DateTimeOffset? LowerboundValue { get; set; }
} `