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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Edit popup dynamic async date range validation

Thread ID:

Created:

Updated:

Platform:

Replies:

149297 Nov 20,2019 10:13 PM UTC Nov 22,2019 06:40 AM UTC Angular - EJ 2 2
loading
Tags: Schedule
subhajit
Asked On November 20, 2019 10:13 PM UTC

When creating or editing an event, I need to validate that the date + time falls within a valid range. The validation requires an API call, so it must be done async.
Everything I see in the documentation regarding the form validation appears to be static.

Ideally I'd like to present the user with a warning if the start and end time they select falls outside of a valid range, but still allow them to create or edit the event.

Any ideas on how to achieve this would be appreciated.



Vinitha Devi Murugan [Syncfusion]
Replied On November 21, 2019 11:51 AM UTC

Hi subhajit, 
 
Syncfusion Greetings. 
 
We prepared the example below to validate the start and end time based on some approved range and then showed the validation message on the editor window. Please see the sample below. 
 
 
 
 
 
Regards, 
M.Vinitha devi 


Vinitha Devi Murugan [Syncfusion]
Replied On November 22, 2019 06:40 AM UTC

Hi subhajit,  
  
Syncfusion Greetings.  
  
We prepared the example below to validate the start and end time based on some approved range and then showed the validation message on the editor window. Please see the sample below.  
  
  
  
  
  
Regards,  
M.Vinitha devi  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon