Hi,
I can see from the latest release that the EjsDatePicker has undergone a few changes (along with DropDownList and a few other controls - all issue swith which I have fixed), it's the ValueChange event which is now in the DatePickerEvents section of the control, and no longer in the main element which is causing me problems.
Anyway, as well as introducing TValue for templating and needing this on the ValueChange event, it does not seem to compile for me. (I have updated to the latest version of everything from .net core SDK and syncfusion packages.
Here is my code:
<EjsDatePicker TValue="DateTime?" Placeholder="Start Date" FloatLabelType="FloatLabelType.Always" Format="dd/MM/yyyy" AllowEdit="false" Readonly="false" Value="@DateTime.Now.Date">
<DatePickerEvents ValueChange="DateChanged"></DatePickerEvents>
</EjsDatePicker>
@code {
protected async Task DateChanged(Syncfusion.EJ2.Blazor.Calendars.ChangedEventArgs<DateTime?> args)
{
if (args.IsInteracted)
{
// do something here
}
}
}
When I try to compile I get "Argument 2: cannot convert from 'method group' to 'EventCallback' " on the <DatePickerEvents> line in the code.
Any Ideas what I am doing wrong?