JavaScript Errors with DotNetNuke and RadGrid

5 posts, 0 answers
  1. Mike
    Mike avatar
    13 posts
    Member since:
    Apr 2007

    Posted 20 Aug 2008 Link to this post

    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.
  2. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 22 Aug 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike
    Mike avatar
    13 posts
    Member since:
    Apr 2007

    Posted 25 Aug 2008 Link to this post

    I tried removing the Radgrid and the Javascript error went away. Is there a compatabilty problem with Dotnetnuke and the RadGrid?
  5. Mike
    Mike avatar
    13 posts
    Member since:
    Apr 2007

    Posted 25 Aug 2008 Link to this post

    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

  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 26 Aug 2008 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017