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

Modify schedule field values when adding a new event

Thread ID:

Created:

Updated:

Platform:

Replies:

149203 Nov 18,2019 06:01 PM UTC Nov 21,2019 05:43 AM UTC Blazor 3
loading
Tags: Scheduler
Joe Smith
Asked On November 18, 2019 06:01 PM UTC

Hi,
I'm adding an event with an EditorTemplate, is there a way to change the value dynamically of the context fields (subject, description etc.)? For example, after the EditorTemplate popsup and I enter the info and press Save, I want to then programmatically change some of those values. Any idea?

Thanks,
Joe

Nevitha Ravi [Syncfusion]
Replied On November 19, 2019 06:26 AM UTC

Hi Joe, 

Greetings from Syncfusion Support. 

We can modify the field values dynamically after pressing save button using OnActionBegin event which will trigger before each CRUD actions and navigation action takes place and for the same we have prepared a sample for your reference which can be downloaded from the following link. 


    public void OnActionBegin(ActionEventArgs<AppointmentData> args) 
    { 
        if (args.RequestType == "eventCreate") 
        { 
            foreach(AppointmentData data in args.AddedRecords) 
            { 
                data.Subject = "Subject Changed"; 
            } 
        } 
    } 

Please try out the sample and get back to us if you need any further assistance. 

Regards, 
Nevitha 


Joe Smith
Replied On November 20, 2019 07:39 PM UTC

Thanks Nevitha, that did it! Appreciate the quick help.

Nevitha Ravi [Syncfusion]
Replied On November 21, 2019 05:43 AM UTC

Hi Joe, 
  
You are most Welcome. Please keep in touch for further assistance. We are always happy in assisting you. 
  
Regards, 
Nevitha 


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