javascript error in _onAppointmentMouseOver

8 posts, 0 answers
  1. Kevin Woram
    Kevin Woram avatar
    11 posts
    Member since:
    Nov 2009

    Posted 04 Jan 2010 Link to this post

    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();

     

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 05 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin Woram
    Kevin Woram avatar
    11 posts
    Member since:
    Nov 2009

    Posted 05 Jan 2010 Link to this post

    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.
  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 06 Jan 2010 Link to this post

    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.
  6. Kevin Woram
    Kevin Woram avatar
    11 posts
    Member since:
    Nov 2009

    Posted 06 Jan 2010 Link to this post

    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. 
  7. Oren Halevi
    Oren Halevi avatar
    8 posts
    Member since:
    Jan 2010

    Posted 29 Nov 2010 Link to this post

    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
  8. Maneesh
    Maneesh avatar
    6 posts
    Member since:
    Feb 2014

    Posted 06 Aug 2014 Link to this post

    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
  9. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 07 Aug 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017