I'm using the scheduler against a SharePoint List using an SPDataSource like this:
I have the Update wired up correctly:
When I click Update I get the follow error:
I have written out the values from ModifiedAppointment to a label and it all looks correct. Both Insert and Delete work fine.
Anyone have an ideas as to what's going wrong with the Update?
cheers,
Steve
<sharepoint:SPDataSource DataSourceMode="List" |
Scope="Default" UseInternalName="true" |
IncludeHidden="true" |
ID="spdsCalendar" runat="server"> |
<SelectParameters> |
<asp:Parameter Name="ListName" DefaultValue="TravelCalendarList" /> |
</SelectParameters> |
<InsertParameters> |
<asp:Parameter Name="ListName" DefaultValue="TravelCalendarList" /> |
</InsertParameters> |
<UpdateParameters> |
<asp:Parameter Name="ListName" DefaultValue="TravelCalendarList" /> |
</UpdateParameters> |
<DeleteParameters> |
<asp:Parameter Name="ListName" DefaultValue="TravelCalendarList" /> |
</DeleteParameters> |
</sharepoint:SPDataSource> |
I have the Update wired up correctly:
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) |
{ |
try |
{ |
if ((e.ModifiedAppointment.Subject == String.Empty) | (e.ModifiedAppointment.Start > e.ModifiedAppointment.End)) |
{ |
e.Cancel = true; |
} |
else |
{ |
e.Appointment.Subject = e.ModifiedAppointment.Subject; |
e.Appointment.Start = e.ModifiedAppointment.Start; |
e.Appointment.End = e.ModifiedAppointment.End; |
} |
} |
catch (Exception ex) |
{ |
lblError.Text = ex.Message.ToString(); |
} |
} |
When I click Update I get the follow error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
|
Stack Trace:
|
I have written out the values from ModifiedAppointment to a label and it all looks correct. Both Insert and Delete work fine.
Anyone have an ideas as to what's going wrong with the Update?
cheers,
Steve