Hi,
Using 17.4.0.46 in a blazor server side project, getting a compile error when trying to use the daterangepicker control:
Error CS1503 Argument 2: cannot convert from 'method group' to 'EventCallback'
I tried using the sample code on the documentation website, on a fresh project, pasting in the following sample code from the website into the index.razor page.
@using Syncfusion.EJ2.Blazor.Calendars
<p>DateRangePicker StarteDate and EndDate is: <strong> @StartValue </strong> and <strong> @EndValue </strong></p>
<EjsDateRangePicker StartDate="@StartValue" EndDate="@EndValue" ValueChange="@onChange"></EjsDateRangePicker>
@code {
public DateTime StartValue { get; set; } = DateTime.Now;
public DateTime EndValue { get; set; } = DateTime.Now;
private void onChange(RangeEventArgs args)
{
StartValue = args.StartDate;
EndValue = args.EndDate;
StateHasChanged();
}
}
Bob