Hi,
We are using the Radscheduler with webservices.
Now i got a problem when i am resizing an appointment. Usually the client side event AppointmentResized fires and the then the webservice UpdateAppointmentData is being called. With a normal appointment this works fine, but when i'm trying to resize a recurring appointment i get the following error: the conversion is not valid.
The code i'm using in the AppointmentResized event is :
With a normal appointment this code works fine and the webservice is being called by the
sender.updateAppointment(appointment, editSeries); method. And the appointment is being resized succesfully.
But when i'm resizing a recurring appointment the sender.updateAppointment(appointment, editSeries); method is being called, but my breakpoint in the webservice method never fires. So it seems that there is an error calling the webservice.
The logfile gives the following error:
10-08-2009 13:19:47 - WebDev.WebServer.exe Error: 0 : 10-08-2009 13:19:47 - System.NotSupportedException: Cultuur nl is een neutrale cultuur. Deze kan niet voor het indelen en parseren worden gebruikt en kan daarom niet als de huidige cultuur van de thread worden ingesteld.
bij System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture)
bij System.Threading.Thread.set_CurrentCulture(CultureInfo value)
bij System.Web.HttpApplication.SetAppLevelCulture()
bij System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
I'm running the newest internal build: Telerik.Web.UI_2009_2_806_dev_hotfix
Greetings William
We are using the Radscheduler with webservices.
Now i got a problem when i am resizing an appointment. Usually the client side event AppointmentResized fires and the then the webservice UpdateAppointmentData is being called. With a normal appointment this works fine, but when i'm trying to resize a recurring appointment i get the following error: the conversion is not valid.
The code i'm using in the AppointmentResized event is :
function AppointmentResized(sender, e) { |
var appointment = e.get_appointment(); |
var Employee = appointment.get_resources().getResourceByType("Employee").get_key(); |
var eendTime = e.get_newTime(); |
var startTime = e.get_appointment().get_start(); |
var eeditSeries = e.get_editingRecurringSeries(); |
// Retrieve appointments this appointment may be overlapping |
var appOverlap = sender.get_appointments().getAppointmentsInRange(startTime, endTime); |
if (appOverlap.get_count() != 0) { |
// Cancel the event, we simulate an move if user autherizes |
e.set_cancel(true); |
var appString = ""; |
var IsOverlapping = false; |
// Check if the appointments are overlapping |
for (q = 0; q < appOverlap.get_count(); q++) { |
var curApp = appOverlap.getAppointment(q); |
var curKey = curApp.get_resources().getResourceByType("Employee").get_key(); |
if (curKey == Employee) { |
if (appOverlap.getAppointment(q) != appointment) { |
IsOverlapping = true; |
var appStringappString = appString + "<br />\n\r" + appOverlap.getAppointment(q).get_subject(); |
} |
} |
} |
if (IsOverlapping) { |
// Pop a confirmation window |
var confirmMessage = "Het wijzigen van afspraak: <br />\n'" + appointment.get_subject() |
+ "' <br />\r\n <br />\r\nZorgt ervoor dat deze afspraak in conflict komt met de volgende afspraken: <br />\r\n" + appString |
+ "<br />\r\n<br />\r\nWilt u doorgaan?"; |
radconfirm(confirmMessage, |
function(arg) { |
if (arg) { |
var scheduler = sender; |
// The user has confirmed moving the appointment. Update the start and end time. |
appointment.set_start(startTime); |
appointment.set_end(endTime); |
sender.updateAppointment(appointment, editSeries); |
} |
}, 330, 100); |
} else { |
appointment.set_start(startTime); |
appointment.set_end(endTime); |
sender.updateAppointment(appointment, editSeries); |
} |
} else { |
appointment.set_start(startTime); |
appointment.set_end(endTime); |
sender.updateAppointment(appointment, editSeries); |
} |
} |
With a normal appointment this code works fine and the webservice is being called by the
sender.updateAppointment(appointment, editSeries); method. And the appointment is being resized succesfully.
But when i'm resizing a recurring appointment the sender.updateAppointment(appointment, editSeries); method is being called, but my breakpoint in the webservice method never fires. So it seems that there is an error calling the webservice.
The logfile gives the following error:
10-08-2009 13:19:47 - WebDev.WebServer.exe Error: 0 : 10-08-2009 13:19:47 - System.NotSupportedException: Cultuur nl is een neutrale cultuur. Deze kan niet voor het indelen en parseren worden gebruikt en kan daarom niet als de huidige cultuur van de thread worden ingesteld.
bij System.Globalization.CultureInfo.CheckNeutral(CultureInfo culture)
bij System.Threading.Thread.set_CurrentCulture(CultureInfo value)
bij System.Web.HttpApplication.SetAppLevelCulture()
bij System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
I'm running the newest internal build: Telerik.Web.UI_2009_2_806_dev_hotfix
Greetings William