This is a migrated thread and some comments may be shown as answers.

using custom function in radscheduler

1 Answer 53 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Piron
Top achievements
Rank 1
Piron asked on 31 May 2011, 09:02 PM
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 .
 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");
        }


    }

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 ?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Jun 2011, 07:29 AM
Hi Piron,

It is difficult to diagnose the problem just by looking at this code snippet. What error in particular do you get. If you can, I advise you to open a support ticket and send us a simple working demo of the issue. This way, we will be able to provide you quickly with an accurate solution.

Best wishes,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Piron
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or