I am using Telerik RadControls for ASP.NET Ajax version 2009.3.1103.20. When I mouse over an appointment in the RadScheduler, I get a Microsoft JScript runtime error: 'null' is null or not an object in the _onAppointmentMouseOver function. The problem is that the second call to getAppointmentFromDomElement (italiczed below) returns null ( 'j' is null ). It seems like a bug that we are making two calls to getAppointmentFromDomElement(). Is this a known problem? Is there a fix available?
_onAppointmentMouseOver:
function(l){if(this._resizingState.resizing||this._dragging){l.stopPropagation();
return
;
}
var k=this.getAppointmentDomElement(l.eventMapTarget);
var
j=this.getAppointmentFromDomElement(k);
var
n=(j.get_allowDelete()!=null)?j.get_allowDelete():this.get_allowDelete();
7 Answers, 1 is accepted
Can you describe the steps to reproduce the problem? Do you observe it in our online demos?
Regards,
Veskoni
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Can you answer my question about the source code: why is the _onAppointmentMouseOver() function passing the return value of the first call to getAppointmentFromDomElement() as the input to a second call to getAppointmentFromDomElement()? This seems like an obvious bug to me. In my javascript debugger, I looked through your source code for other uses of getAppointmentFromDomElement() and never saw it used in this fashion anywhere else in your source code.
If you look closely you'll see that the first call is to getAppointmentDomElement and the second one is to getAppointmentFromDomElement. This is an example of not-so-good function naming on our side, but not a bug per-se.
It looks like RadScheduler can't locate the appointment object for the corresponding element. We can't be sure for the exact reason without looking at the page source and code-behind. A working solution will be even better. Can you send either in the support ticket that you've opened?
Regards,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
http://www.telerik.com/help/aspnet-ajax/schedule_databindingusingthedatasourceproperty.html
I found javascript error being thrown( k.parentNode is null etc on RadSchedulerScirpt.js) when I try to schedule to next week Ie , if my appointment is in 1 august than When I try to schedule to 9 August ,I getting the error.
With Regards
Maneesh
I've already answered your inquiry in the following forum post:
http://www.telerik.com/forums/unable-to-resize-to-next-week-with-no-appionments-in-the-target-week
I would kindly ask you not to post similar questions in different threads, as that way additional clutter is generated. I can assure you that we monitor all threads.
Regards,
Bozhidar
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.