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

Redirect to controller action when appointment clicked

Can you give me an example of how to setup the scheduler control to redirect to a specific controller action when an appointment is clicked. I need to pass the appointment information to the controller action.


P.S. Some detailed user guide information on the scheduler would really help. Just sayin...

1 Reply

SK Sarath Kumar P K Syncfusion Team March 18, 2015 12:07 PM UTC

Hi Randall,

Thanks for using Syncfusion products.

We have prepared a sample based on your requirement (“How to setup the scheduler control to redirect to a specific controller action when an appointment is clicked”) and it can be downloaded from the following location.


In the above sample, we have used an ajax post within the “AppointmentClick” client side method and it will redirect to the controller action. And in the action method (controller page) we can get the appointment details in the argument (Ex: data).






.CurrentDate(new DateTime(2015, 3, 3))

.ScheduleClientSideEvents(eve => eve.Create("onCreate").AppointmentClick("onAppointmentClick")) //Need to mention the appointmentClick client side method


.AppointmentSettings(fields => fields.Datasource(ds => ds.URL("Home/GetData").Adaptor("UrlAdaptor"))











function onAppointmentClick(args) {

//ajax post to call the controller action


type: "POST",

dataType: 'json',

data: JSON.stringify(args.appointment),

contentType: 'application/json; charset=utf-8',

url: "Home/appointmentClick"








public JsonResult appointmentClick(Appointment data) {

return Json(data);



In controller action we can get the data which is passed from the appointmentClick client side method.

Please refer the below link for detailed user guide information about Schedule.


Please let us know whether the provided sample helps you and need any further assistance on this.


Sarath Kumar P K

Live Chat Icon For mobile
Up arrow icon