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

_events is null or not an object

14 Answers 293 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 19 Feb 2009, 07:54 PM

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

14 Answers, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 23 Feb 2009, 11:19 AM
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.
0
Laura
Top achievements
Rank 1
answered on 27 Mar 2009, 03:27 PM
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
0
Fiko
Telerik team
answered on 31 Mar 2009, 01:35 PM
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.
0
Mark Galbreath
Top achievements
Rank 2
answered on 04 Sep 2009, 02:48 PM
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.
0
Sebastian
Telerik team
answered on 07 Sep 2009, 07:03 AM
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.
0
Arabinda Behera
Top achievements
Rank 1
answered on 28 Jan 2010, 09:05 PM
Is this issue fixed?

Regards,
Arabinda
0
Mark Galbreath
Top achievements
Rank 2
answered on 29 Jan 2010, 04:42 PM
The issue disappeared when I updated the DLL to 2009 Q3.

Cheers!
Mark
0
Georgi Tunev
Telerik team
answered on 01 Feb 2010, 01:27 PM
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.
0
Elias
Top achievements
Rank 2
answered on 22 Jun 2010, 03:42 PM
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
0
Georgi Tunev
Telerik team
answered on 25 Jun 2010, 02:33 PM
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
0
Elias
Top achievements
Rank 2
answered on 12 Jul 2010, 09:01 PM
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.
0
Georgi Tunev
Telerik team
answered on 13 Jul 2010, 08:25 AM
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
0
Stuart Watton
Top achievements
Rank 2
answered on 23 Dec 2010, 12:07 PM
Thanks Elias,

Your info certainly helped me fix my problem.

Stuart
0
Elias
Top achievements
Rank 2
answered on 23 Dec 2010, 03:07 PM
My pleasure to help whatever I can. have a happy holiday you and Telerik family.
Tags
FormDecorator
Asked by
Dennis
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Laura
Top achievements
Rank 1
Fiko
Telerik team
Mark Galbreath
Top achievements
Rank 2
Sebastian
Telerik team
Arabinda Behera
Top achievements
Rank 1
Georgi Tunev
Telerik team
Elias
Top achievements
Rank 2
Stuart Watton
Top achievements
Rank 2
Share this question
or