Hello
Here's the problem : I have a telerik radscheduler project linked with a database project . In order to update the database when a modification is done on the radscheduler i have decided to override the default on appointmentupdate method .
My solution is very close to the binding to generic list example in your site : http://demos.telerik.com/aspnet-ajax/scheduler/examples/bindtolist/defaultcs.aspx.
This solution seems to work fine but each time i launch the avanced edit template the radscheduler project crashed . Could you explain to me what did i miss ?
Here's the problem : I have a telerik radscheduler project linked with a database project . In order to update the database when a modification is done on the radscheduler i have decided to override the default on appointmentupdate method .
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
ai.CopyInfo(e.ModifiedAppointment);
try
{
Business.DatabaseAccess myAccess = new Business.DatabaseAccess();
AppointmentSet to_modify = myAccess.getAppointmentByDate(e.ModifiedAppointment.Start);
myAccess.modifyAppointmentDate(e.ModifiedAppointment.Start, e.ModifiedAppointment.End, to_modify.Id);
}
catch
{
throw new Exception("unknown problem");
}
}
{
AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);
ai.CopyInfo(e.ModifiedAppointment);
try
{
Business.DatabaseAccess myAccess = new Business.DatabaseAccess();
AppointmentSet to_modify = myAccess.getAppointmentByDate(e.ModifiedAppointment.Start);
myAccess.modifyAppointmentDate(e.ModifiedAppointment.Start, e.ModifiedAppointment.End, to_modify.Id);
}
catch
{
throw new Exception("unknown problem");
}
}
My solution is very close to the binding to generic list example in your site : http://demos.telerik.com/aspnet-ajax/scheduler/examples/bindtolist/defaultcs.aspx.
This solution seems to work fine but each time i launch the avanced edit template the radscheduler project crashed . Could you explain to me what did i miss ?