_events is null or not an object

15 posts, 1 answers
  1. Dennis
    Dennis avatar
    9 posts
    Member since:
    Feb 2008

    Posted 19 Feb 2009 Link to this post

    Hi

    I have a large form (Approx 120 kb) in which i use a combination of Peter Blum's VAM controls, the ordinary aspx controls and telerik controls. In the page I have just upgraded the solution from Promethious 2007-Q3 to the newest version.

    I tried to insert the Form Decorator to give the site a more complete look, and therefore I inserted the following line:
        <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" Skin="Office2007" runat="server" />

    When I open the page, the site looks fine an the Form Decorator works perfectly, but when I try to exit the page, i get the error:

    Line: 6
    Error: '_events' is null or not an object

    If I remove the formdecorator I won't get the above error.

    Because the page is very large, it makes it difficult to isolate the error. So any help or clues as to why this might happen would be greatly appreciated.

    Thanks in advance
    Dennis Cassøe

  2. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 23 Feb 2009 Link to this post

    Hello Dennis,

    I assume that the issue might be related to integration of RadFormDecorator and AJAX but since I do not have your code I can only assume what might cause the issue. However, some bugs concerning the RadFormDecorator control were fixed and I suggest to first test your project with the latest "Futures" release, namely 2009.1.220.20 and check whether the problem is fixed there.

    In case it is not, you should replicate the issue in a separate demo, open a new support ticket and send it to us along with detailed reproduction steps because we need to examine what is actually happening locally and we are unable to reproduce this error in a basic setup (it does not exist in our demos for example).

    Greetings,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Julie
    Julie avatar
    7 posts
    Member since:
    Jun 2008

    Posted 27 Mar 2009 Link to this post

    Hello,

    I am using version 2009.1.311.35 and am getting the same error. I remove RadFormDecorator and the error goes away.

    The error only happens on one page that has serveral AjaxControlToolkit PopupControlExtenders.

    Thanks
    Wenlei
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 31 Mar 2009 Link to this post

    Hello Wenlei,

    We are aware of this problem and we are currently working on it. For the time being I recommend you declare the RadFormDecorator control under all of the AjaxToolkit controls.

    For example :

    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <div> 
        <asp:Panel ID="Panel1" runat="server"
            <asp:Label ID="Label1" runat="server" Text="Text 1"></asp:Label> 
            <asp:Label ID="Label2" runat="server" Text="Text 2"></asp:Label> 
        </asp:Panel> 
        <br /> 
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
        <ajaxToolkit:PopupControlExtender ID="PopupExtender1" runat="server" PopupControlID="Panel1" 
            Position="Bottom" TargetControlID="TextBox1"
        </ajaxToolkit:PopupControlExtender>

        <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" Skin="Office2007" 
            runat="server" /> 
    </div> 
    </form> 

    In this case all of the controls on the page work without any problems.

    I hope this helps.

    Best wishes,
    Fiko
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  6. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 04 Sep 2009 Link to this post

    I am using version 2009, 2, 701, 20 and I am NOT using the RadFormDecorator and I am getting the exact same error.  It occurs when a button is clicked that passes a selected gridrow to the code-behind for retrieval of of data from Oracle.  This error mysteriously just started occurring and I cannot make any sense of the javascript in the Visual Studio debugger.

    Not only is this a #@$$%! annoyance, my RadGrid no longer will display the data.
  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 07 Sep 2009 Link to this post

    Hello Mark,

    Can you please check whether this issue appear with the Q2 2009 SP1 release of RadControls for ASP.NET AJAX (2009.2.826)?

    If the problem remains, I will appreciate if you isolate a simple working version of your project (including a dummy data source for the grid since the actual data is most probably not relevant to the issue) and send it enclosed to a regular support ticket. We will test it locally and will get back to you with our findings.

    Kind regards,
    Sebastian
    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.
  8. Arabinda Behera
    Arabinda Behera avatar
    2 posts
    Member since:
    Jul 2009

    Posted 28 Jan 2010 Link to this post

    Is this issue fixed?

    Regards,
    Arabinda
  9. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 29 Jan 2010 Link to this post

    The issue disappeared when I updated the DLL to 2009 Q3.

    Cheers!
    Mark
  10. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Feb 2010 Link to this post

    Hi Arabinda,

    If you experience this problem I would suggest to update to a recent version of the control (like Mark did) and if the problem persist - to open a support ticket and to send us a small sample application that reproduces this issue. We will check it right away.


    Sincerely yours,
    Georgi Tunev
    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.
  11. Elias
    Elias avatar
    12 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2010 Link to this post

    Im using 2010.1.415.35 updating all aspx controls (every what I can to change) and I have the problem using the decorator. when i navigate from page to page using response redirect.

    1. I have page A (userlisting.aspx) with a radgrid that show all the systems users and a aspx button decorated with the form decorator which is a Add User (response.redirect("usersetup.aspx") -->
    2.click the button and everything works fine...

    3. in usersetup.aspx (page B) I have other aspx button which is Close (response.redirect("userlisting.aspx")
    4. when I click the close button which has no other instruction than the response.redirect, the error occurs.

    I have other area similar scenario but i did not update the controls yet: page C with aspx gridview, aspx button redirects to page D with imagebutton (close) I click close and the error appears too. Pages C and D, I did not change a thing yet (I did not update with radcontrols yet) but I remove the form decorator from the masterpage and everything works fine
  12. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2010 Link to this post

    Hello Elias,

    I tried to reproduce the problem locally but to no avail - everything is working fine on my side. It is possible that I am missing something in your setup so I would like to ask you to open a support ticket and to send us a small sample project where this issue could be reproduced. We will check it right away and do our best to help.

    Thank you in advance for your cooperation.

    Kind regards,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  13. Elias
    Elias avatar
    12 posts
    Member since:
    Apr 2009

    Posted 12 Jul 2010 Link to this post

    I hope this will help people that have the same problem. Whe the error comes up in the debugging mode, the error stop in a  telerik web resource under the project tree --> script documents. The error highlight in some code, my case (c=a._events[e];) I open the tree (+) sign in the a._events and scroll down until i found the id property.
     
    I notice that the id (ctl00_ContentPlaceHolder1_chkActive) in my case is a checkbox control with a ajax extender (mutually exclusive).

    What happened in this case, the thing is that the checkbox has a ajax extender but a have no other related checkbox to use the extender to make the multually exclusive. In other words i had a ajax extender in a control which i dont need to use. I suggest to verify the error in the web resource file when the debuger stops and highlight the control with the error.

    I verified the other page that I had the same error and guess what... I had another extra ajax extender like the first one related above with the chechkbox.
  14. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jul 2010 Link to this post

    Hi Elias,

    Thank you for the information - I am sure it will be of help for other users that have stumbled upon such problem.



    Kind regards,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  15. Stuart Watton
    Stuart Watton avatar
    18 posts
    Member since:
    Sep 2009

    Posted 23 Dec 2010 Link to this post

    Thanks Elias,

    Your info certainly helped me fix my problem.

    Stuart
  16. Elias
    Elias avatar
    12 posts
    Member since:
    Apr 2009

    Posted 23 Dec 2010 Link to this post

    My pleasure to help whatever I can. have a happy holiday you and Telerik family.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017