DateRange clear method

When I reset the DateRange dates how can I capture the method fired?

1 Reply

SD Saranya Dhayalan Syncfusion Team December 17, 2019 08:57 AM UTC

Hi Alex 
 
Thank you for contacting Syncfusion support, 
 
When you reset the DateRangePicker ValueChange event is triggered. Please find the below code snippet: 
 
@using Syncfusion.EJ2.Blazor.Calendars 
 
<EjsDateRangePicker Placeholder="Choose a Range" Min="@MinDate" Max="@MaxDate"> 
    <DateRangePickerEvents ValueChange="onValueChange"></DateRangePickerEvents> 
</EjsDateRangePicker> 
 
@code { 
    public DateTime MinDate { get; set; } = new DateTime(2017, 01, 05); 
    public DateTime MaxDate { get; set; } = new DateTime(2017, 12, 20); 
 
    public void onValueChange(RangeEventArgs args) 
    { 
 
    } 
} 
Please find the below code snippet: 
 
 
 
Please find the below documentation link: 
 
Could you please check the above code snippet and get back to us if you need further assistance on this? 
 
Regards, 
Saranya D 


Loader.
Up arrow icon