I get a nullreference error when I try to manage @bind-Value using the ValueChange event.
<SfDatePicker TValue="DateTime?" @bind-Value="DateValue">
<DatePickerEvents TValue="DateTime?" ValueChange="@changeEvent"></DatePickerEvents>
</SfDatePicker>
@code {
public DateTime? DateValue { get; set; }
void changeEvent(ChangedEventArgs<DateTime?> args)
{
DateValue = DateTime.Now;
}
} |
Hi Sureshkumar ,
it seems this no longer works with v22.2.12
Do you suggest a new solution?
thanks
Hi Sven G,
Thank you for reaching out regarding the issue you encountered with version v22.2.12.
We've thoroughly reviewed your concern and attempted to replicate the issue on our end. However, we couldn't reproduce the problem you mentioned. To assist you more effectively, could you please provide us with a sample that reproduces the issue along with the steps to replicate it? This will help us understand the problem better and provide you with a more accurate solution.
In the meantime, you can refer to the sample provided for your reference: https://blazorplayground.syncfusion.com/rtrfjWVkTtwJnXAA
Thank you for your cooperation and understanding.
Regards,
Kokila Poovendran.