Hi Parvathy,
Thanks for using Syncfusion products.
We would like to inform you that, we can able to reproduce the above mentioned issue while following the same way mentioned by you in the forum. Therefore, we suggest you to follow the below steps to overcome the mentioned issue.
Step 1: Add the handlers in the web.config page:
<code>
<system.web>
-------------------------------
<httpHandlers>
<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />
</httpHandlers>
</system.web>
<system.webServer>
---------------------------------
<handlers>
<add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=11.4400.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
</handlers>
</system.webServer>
</code>
Step 2: Add the Style Manager and Script Manager in the layout page:
<code>
<head>
@(Html.Syncfusion().StyleManager().Combine(true).Minify(true)
.Register(component =>
{
component.Add(ComponentType.Schedule);
component.Add(ComponentType.NumericTextBox);
component.Add(ComponentType.Dialog);
component.Add(ComponentType.GenericDropDown);
component.Add(ComponentType.DatePicker);
}))
</head>
<body>
-----------------------------------------
@RenderSection("scripts", required: false)
@{Html.Syncfusion().ScriptManager().Combine(false).Minify(false).Render();}
</body>
</code>
Step 3: Refer the jQuery in the layout page:
<code>
<head>
-------------------------
<script src="../../Scripts/jquery-1.9.1.js" type="text/javascript"></script>
@(Html.Syncfusion().StyleManager().Combine(true).Minify(true)
.Register(component =>
--------------------------
</head>
</code>
And also we have prepared the sample for your reference, which can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/directtrac/general/SampleSchedule-2059235212.zip
And also we suggest you to look into our below online UG documentation link to know more about adding the Syncfusion control to the project.
Please let us know if it helps, and any further assistance on this.
Regards,
Velmurugan
Hi Parvathy,
Thanks for your update.
We would like to inform you that, we are suspect that you may missed to add the “Post” action method to save the appointment details in the server side(Controller page). Therefore, we suggest you to add the “Post” action method in controller page for necessary actions like save, edit, delete, etc.. For your reference we have given the “Post action code snippet for save” below that need to add in the controller page to “Save” action takes effect.
<code>
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult ScheduleFeatures(Params args, Schedule scheduleObject)
{
if (args.CurrentAction == "Save")
{
-------------------
ScheduleAppointment appoint = new ScheduleAppointment()
{
Id = intMax + 1,
StartTime = startTime.ToString(),
EndTime = endTime.ToString(),
-----------------------------
-----------------------------
};
AppointmentsList.Add(appoint);
}
-------------------------------
return result;
}
</code>
Please let us know if it helps, otherwise get back with us some more information like any script errors throws in the “firebug” while saving the appointments or share your “View Page & Controller page” code details with us. Hence, we will happy to help you further on this.
Regards,
Velmurugan