Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
When the constructor has initialized with some property, the SfDatePicker component initializes the @bind-value property value which provided in the sample level to the default value. So even though if we set the value the component, the date value provided does not appear in the component and resets to default value which is null.
Sample link: https://www.syncfusion.com/downloads/support/directtrac/328554/ze/DatePickerError_3c7e1a20
|
public partial class ObiDatePicker<TValue> : SfDatePicker<TValue> { public ObiDatePicker() { FirstDayOfWeek = 1; StrictMode = true; } } |
|
<ObiDatePicker TValue="DateTime?" Enabled="true" ShowClearButton="true" Placeholder="@PlaceholderVonText" @bind-Value="@VonDateValue" Locale="@Locale"></ObiDatePicker> |