Microsoft jscript runtime error Parameter name: panelsCreated[0]

2 posts, 0 answers
  1. MBEN
    MBEN avatar
    159 posts
    Member since:
    Nov 2011

    Posted 21 Nov 2013 Link to this post

    I am not sure which control this error should be mapped to.
    I have an asp.net wizard and the wizard pages come from user controls. On some of those pages I have a radgrid.
    On one of the page I have a chart and the next page after that is the one that has radgrid. I get the error Microsoft jscript runtime error Parameter name: panelsCreated[0] and the chart does not load for me. If I use asp.net grid instead of radgrid on that page then everything works fine.

    Below is the ascx page that has the radgrid.
    <%@ Control Language="c#" Inherits="ucBBucket" CodeFile="ucBBucket.ascx.cs" %>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <telerik:RadAjaxManagerProxy ID="RadAJAXManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgBene">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgBene" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <telerik:RadGrid ID="rgBene" runat="server" GridLines="Vertical" AllowPaging="true"
                    AllowAutomaticUpdates="false" AllowAutomaticInserts="false" AutoGenerateColumns="False"
                    EnableLinqExpressions="false" AllowSorting="true" AllowAutomaticDeletes="false"
                    Skin="MBen" EnableEmbeddedSkins="false" DataSourceID="_dataSrcBene"
                    ShowFooter="true" AllowCustomPaging="false" AllowFilteringByColumn="false" Width="100%"
                    PageSize="15" ImagesPath="../App_Themes/Grid">
                    <MasterTableView TableLayout="Fixed" HierarchyDefaultExpanded="true" EditMode="PopUp"
                        CommandItemDisplay="None" DataKeyNames="" PagerStyle-Position="Bottom">
                        <Columns>
                            <telerik:GridBoundColumn DataField="Type" UniqueName="Type"
                                HeaderText="Type" HeaderStyle-Width="25%" SortExpression="Type" />
                            <telerik:GridBoundColumn DataField="Percent" UniqueName="Percent"
                                HeaderText="Percentage" SortExpression="Percent" HeaderStyle-Width="10%" />
                            <telerik:GridBoundColumn DataField="Bene" UniqueName="Bene" HeaderText="Bene"
                                SortExpression="Bene" />
                            <telerik:GridBoundColumn DataField="Relationship" UniqueName="Relationship"
                                HeaderText="Relationship" SortExpression="Relationship" HeaderStyle-Width="12%" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
              </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="_dataSrcBene" runat="server" SelectMethod="ListByParticipant"
        OnSelected="_dataSrcBene_Selected" >
        <SelectParameters>
            <asp:ProfileParameter Name="ParticipantID" PropertyName="ParticipantID" DefaultValue="-1"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

    Please advice.
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1796 posts

    Posted 26 Nov 2013 Link to this post

    Hello,

    Using the provided code snippet I have tried to replicate the error, but to no avail.

    However, you could try setting the ScriptMode property of your ScriptManager to "Release" and see if it solves the issue.

    For your convenience I am attaching the sample page and the user control that I have tested your code with. Please take a look at them and see what differs in your scenario.

    If you continue to face that error, please open a regular support ticket with sample, runnable project that replicates the issue attached, so we could inspect it locally.

    Looking forward to your reply.


    Regards,
    Konstantin Dikov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top