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

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


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!

3 Replies

VD Vinitha Devi Murugan Syncfusion Team 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 

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

Ah, perfect!

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


VD Vinitha Devi Murugan Syncfusion Team November 26, 2019 05:56 AM UTC

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

Live Chat Icon For mobile
Up arrow icon