We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cancel button keep changes and is there an event for apply button

Regarding demo for DateRangePicker.

My opinion is that Cancel button does not works as should:
If there is already  selected range in control, when user pickup new range and click cancel , I think that control should preserve old selected range, not new one.
What is point of cancel button if it still change value of range ?


Second thing:
Is there an event for Apply button ?


1 Reply

SP Sureshkumar P Syncfusion Team January 31, 2020 11:45 AM UTC

Hi Admir, 
 
Greetings from Syncfusion support. 
 
Query 1: 
 
My opinion is that Cancel button does not works as should: 
If there is already  selected range in control, when user pickup new range and click cancel , I think that control should preserve old selected range, not new one. 
What is point of cancel button if it still change value of range ?  
 
Answer: 
            the cancel button reset the current selection in the daterangepicker popup value not component value. So, in your case the components previous value will maintain the component object. 
 
Query 2:  
 
Is there an event for Apply button ? 
 
Answer: 
            We have validated your requirement with shared image. we do not have any event while clicking the apply button without previous selected value changed but we have triggered the ValueChange event after changed the value and clicking the apply button.  
 
Regards, 
Sureshkumar P 


Loader.
Live Chat Icon For mobile
Up arrow icon