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

javascript error in _onAppointmentMouseOver

7 Answers 58 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Kevin Woram
Top achievements
Rank 1
Kevin Woram asked on 04 Jan 2010, 04:26 PM

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

Sort by
0
Veselin Vasilev
Telerik team
answered on 05 Jan 2010, 03:58 PM
Hi Kevin Woram,

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.
0
Kevin Woram
Top achievements
Rank 1
answered on 05 Jan 2010, 04:05 PM
I have described the steps to reproduce the problem to the best of my ability.  I did not observe the problem in your online demos or I probably would not have downloaded your product. 

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.
0
T. Tsonev
Telerik team
answered on 06 Jan 2010, 02:49 PM
Hello Kevin,

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.
0
Kevin Woram
Top achievements
Rank 1
answered on 06 Jan 2010, 02:58 PM
Sorry for the frustrated tone of my last post but I have been wrestling with problems with the AJAX RadScheduler for a while.  It appears that the behavior of the AJAX RadScheduler is significantly impacted by the HTML context surrounding it.  We have a mature product with an established stylesheet structure and it appears that when I put the AJAX RadScheduler control into this structure, bugs occur.  I am currently evaluating the Silverlight RadScheduler to see if it will meet my needs. 
0
Oren Halevi
Top achievements
Rank 1
answered on 29 Nov 2010, 04:20 PM
The error might indicate that you did not set any resources for your scheduler. see here how to set them (i had the same error):
http://www.telerik.com/help/aspnet-ajax/schedule_databindingusingthedatasourceproperty.html
0
Maneesh
Top achievements
Rank 1
answered on 06 Aug 2014, 09:30 AM
Hi,
       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
0
Bozhidar
Telerik team
answered on 07 Aug 2014, 07:08 AM
Hi 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.

 
Tags
Ajax
Asked by
Kevin Woram
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Kevin Woram
Top achievements
Rank 1
T. Tsonev
Telerik team
Oren Halevi
Top achievements
Rank 1
Maneesh
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or