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

[Solved] NullReferenceException in Advanced Edit

2 Answers 171 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 12 Jun 2008, 05:32 PM
Hello -- I looked through the forum to see if I could find something similar to the problem I'm experiencing, but did not.

I have implemented a Scheduler using a custom data provider. I can create appointments fine, however when I try to edit them I'm receiving the error below. Specifically, this error occurs when I double-click the appointment I wish to edit,  choose to "Edit the Series", and then click the "More" link to view the AdvancedEdit window. Editing a single occurrence of an appointment in AdvancedEdit mode works fine, whether the appointment is actually recurring or not.

Here's the error:
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Web.UI.RadScheduler.OnFormCreating(Appointment appointment, SchedulerFormMode mode) +110
Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +448
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Any ideas on what could be causing this? Let me know if you need more info.

Thanks,
Trevor


2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 16 Jun 2008, 10:55 AM
Hello Trevor,

By default, selecting the "Edit the Series" option automatically opens the advanced edit form. I tested the
XML Scheduler Provider online example and I was able to edit the series without problems.
 
Could you open a support ticket and send us a small project which demonstrates the problem?



Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Trevor
Top achievements
Rank 1
answered on 16 Jun 2008, 04:37 PM
Thanks for the reply, Peter. I actually solved the problem over the weekend. I had a hunch there was something I wasn't doing right and sure enough, I found that I had left out a key step in implementing my DataProvider. I hadn't given the RadScheduler a reference to the Provider object and had overloaded the Insert, Update, Delete, etc events in the code-behind with manual calls into the provider methods. The effect was more akin to a DataSource integration than a DataProvider. It worked though -- except for that one scenario.

In any case, I solved my problem. Thanks.
Tags
Scheduler
Asked by
Trevor
Top achievements
Rank 1
Answers by
Peter
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or