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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to prevent form submission (postback) when adding events/appointments

Thread ID:





149379 Nov 24,2019 01:40 PM UTC Nov 26,2019 05:56 AM UTC ASP.NET Core - EJ 2 3
Tags: Scheduler
Brian Di Croce
Asked On November 24, 2019 01:43 PM UTC


Is there a way to avoid the Scheduler to send postback (submit form) when creating/editing/removing events or appointments?

I'm using ASP.NET Core with Razor Pages.

For example, if I put the Scheduler within a form element (which contains other controls), a postback occurs every time an event is created. Is it possible to prevent postbacks using the Scheduler?

If I put the Scheduler outside of a form element, then it's okay. But in this instance, I need it to be within a form element.

Thanks in advance for your help!

Vinitha Devi Murugan [Syncfusion]
Replied On November 25, 2019 09:01 AM UTC

Hi Ivan, 
Syncfusion Greetings. 
By using the highlight code below, we can prevent the postback action of the form element and for the same we have prepared below sample. Please refer to it. 
<form onsubmit="return false"> 
        <ejs-schedule id="schedule" height="550px"> 
M.Vinitha devi 

Brian Di Croce
Replied On November 25, 2019 12:24 PM UTC

Ah, perfect!

Thank you so much Vinitha for this one! It works flawlessly. :)


Vinitha Devi Murugan [Syncfusion]
Replied On November 26, 2019 05:56 AM UTC

Hi Ivan, 
You are most welcome 😊 
M.Vintiha devi 


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