Hi Velmurugan,
Thank you for your help. I've tried your example, but at first it did not work. Finally what I had to do was including the js files below the js files that where added to the page by the application itself. So I figured out, if that works, the ASP.NET Web Form control should also work this way and it does. So I followed the steps in this link:
https://www.syncfusion.com/kb/5182/how-to-perform-the-crud-operation-in-the-schedule-control-with-webservices-datasource
And created the methods to perform CRUD. (FYI instead of the webservice I use a repository). The Methods work (did not implement the delete method yet) except one method (Schedule1_ServerAppointmentEdited) keeps giving the following error: "The given key was not present in the dictionary". I think this is strange, because the method is actually the same as the methods Schedule1_ServerResizeStop and Schedule1_ServerDragStop. And those two methods work fine. It seems that list is not populated.
I use the following code in the code behind:
Protected Sub Schedule1_ServerAppointmentEdited(sender As Object, e As Syncfusion.JavaScript.Web.ScheduleEventArgs)
Arguments = TryCast(e.Arguments("appointment"), Dictionary(Of String, Object))
Dim list = TryCast(Arguments, Dictionary(Of String, Object))
descriptionValue = If(list.ContainsKey("Description") = False, "", list("Description").ToString())
_scheduleRepo.Update(list("Id").ToString(), list("Subject").ToString(), descriptionValue.ToString(),
Convert.ToDateTime(list("StartTime")).ToUniversalTime().ToString(), Convert.ToDateTime(list
("EndTime")).ToUniversalTime().ToString(), Convert.ToBoolean(list("AllDay")))
BindAppointments()
End Sub
Thank you for your help.
Regards,
Klaas