Hello,
I have some problems with the telerik scheduler. I get the following error message in a javascript alert box:
"Object variable or With block variable not set"
This is happening after adding an appointment. I have confirmed that what is triggering the error message is the DataItem("resurs_farg") on line 3 in this codebehind:
I use this to put different colors on appointments belonging to dirrerent resources and it works great when i load the calendar but not when adding a new appointment. However, the appointent is added and it shows up after a reload.
All help is appreciated!
Thanks
I have some problems with the telerik scheduler. I get the following error message in a javascript alert box:
"Object variable or With block variable not set"
This is happening after adding an appointment. I have confirmed that what is triggering the error message is the DataItem("resurs_farg") on line 3 in this codebehind:
Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound |
Dim strFarg As String = "" |
strFarg = e.Appointment.DataItem("resurs_farg").ToString() |
e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml(strFarg) |
e.Appointment.BorderColor = Color.Black |
e.Appointment.BorderWidth = Unit.Pixel(1) |
End Sub |
I use this to put different colors on appointments belonging to dirrerent resources and it works great when i load the calendar but not when adding a new appointment. However, the appointent is added and it shows up after a reload.
All help is appreciated!
Thanks