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

JavaScript Errors with DotNetNuke and RadGrid

4 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 20 Aug 2008, 09:58 PM
Hello,

I have created a DNN module that has a Radgrid inside the dotnetnuke module. When accessing the module I am noticing that I am getting JavaScript errors on the page. The error is:
_2e2 is null
_2e2.remove_initializeRequest(this._initializeRequestHandler);
Line 4367

The grid looks like:

Line 4367The grid looks like:
 <telerik:RadGrid ID="RadUserGroups" runat="server" Width="200px"   
            DataSourceID="GetUserGroups" AllowPaging="True" GridLines="None" AutoGenerateColumns="False"   
                  Skin="WebBlue" AllowFilteringByColumn="True" oninit="RadUserGroups_Init"   
                    onitemcommand="RadUserGroups_ItemCommand" onitemdatabound="RadUserGroups_ItemDataBound"    
             > 
                  <PagerStyle Mode="NumericPages" /> 
                  <MasterTableView PageSize="5" TableLayout="Auto" > 
                <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
 
                <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                                  <Columns> 
                   <telerik:GridBoundColumn DataField="Id" HeaderText="Id"   
                           HeaderStyle-HorizontalAlign="Center" Visible="false"    
                           ItemStyle-HorizontalAlign="Center"  UniqueName="Id" > 
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                            <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                     </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Name" HeaderText="User Groups"      
                           HeaderStyle-HorizontalAlign="Center"  ItemStyle-HorizontalAlign="Center">  
                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                   </telerik:GridBoundColumn> 
                       </Columns> 
                       </MasterTableView> 
                                  <ClientSettings EnablePostBackOnRowClick="true"   > 
                                      <Selecting AllowRowSelect="True"   /> 
                                  </ClientSettings> 
        </telerik:RadGrid> 

I am not sure why this is hapening as this is a pretty basic RadGrid. Any help or suggestions would be greatly apperciated.

4 Answers, 1 is accepted

Sort by
0
Kiara
Top achievements
Rank 1
answered on 22 Aug 2008, 01:57 PM
The error seems to be quite generic and points to ScriptResource.axd which is the HttpHandler used by the ASP.NET AJAX framework.

The first step you can take is to remove the RadGrid control to see whether the problem persists. The next thing would be to see what type of object is _2e2 (debugging the javascript code) because it looks it is not initialized/available when referenced.

Kiara
0
Mike
Top achievements
Rank 1
answered on 25 Aug 2008, 05:58 PM
I tried removing the Radgrid and the Javascript error went away. Is there a compatabilty problem with Dotnetnuke and the RadGrid?
0
Mike
Top achievements
Rank 1
answered on 25 Aug 2008, 06:27 PM
I debugged the Javascript code and isolated the exact lines where the error is occuring:

var _2a8=Sys.WebForms.PageRequestManager.getInstance();
this._initializeRequestHandler=Function.createDelegate(this,this._initializeRequest);
_2a8.add_initializeRequest(this._initializeRequestHandler);
}

With the error message:

_2a8 is null
_2a8.add_initializeRequest(this._initializeRequestHandler);

Does the RadAjaxManger needed to be added to the page? Is Ajax not turned on? Does the Rad grid need to be placed in a RadAjaxPanel?

Please help

0
Vlad
Telerik team
answered on 26 Aug 2008, 05:24 AM
Hi mgaughan,

Please check this thread:
http://www.telerik.com/community/forums/thread/b311D-bemhad.aspx

All the best,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Kiara
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or