Unable to get value of the property 'style': object is null or undefined

2 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 31 Jul 2011 Link to this post

    I have aproblem with the radtooltip control (demo: http://demos.telerik.com/aspnet-ajax/tooltip/examples/onclientresponseend/defaultcs.aspx).
    I always got the webpage error : Unable to get value of the property 'style': object is null or undefined.
    If I remove the following javascript lines then the error doesn't display:
    $get("startRequest").style.display = "none";
            $get("endRequest").style.display = "";

    Note: I'm using the version 2009.3.1314.35

    Please, I need your help,
    It is appreciated to send me the solution of the problem,

  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 02 Aug 2011 Link to this post

    Hello Bader,

     Did you examine the demo code in more details and if not - have you copied all the code? The "startRequest" and "endRequest" are the IDs of two SPAN elements with different text and they are dynamically shown/hidden by the code you have pasted in your thread. What most probably happens on your side is that you most probably have not copied those SPANs. If you do not need them, you can completely remove that code, otherwise - please add them accordingly.

    On a side note when you install RadControls, our online examples projects are automatically installed on your computer and you can not only examine their full source code, but also extend them further in order to meet your requirements.

    You can open the demos from here:

    Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio

    The actual location on your hard disk is the following one:

    C:\Program Files\Telerik\RadControls for ASPNET AJAX \Live Demos

    I hope that this information is helpful.


    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top