Cannot read property set_additionalQueryString of null

4 posts, 0 answers
  1. Alex
    Alex avatar
    31 posts
    Member since:
    Jun 2011

    Posted 07 Jan 2015 Link to this post

    Using Q2 2014.  If I receive the error:

    uncaught TypeError: Cannot read property 'set_additionalQueryString' of null
    WebResource.axd line 12175

    The error occurs in the console (tested with Chrome and IE) when the DropDownList is changed (postback, but any postback will cause the problem).

    Very specific case.  The following code will reproduce.  The failure appears to be related to RadEditor with shared toolbar (ToolProviderID). 
    - Removing the shared toolbar resolves the issue.
    - Disabling AJAX resolves the issue.
    - Removing the Refresh button or removing it from AAX resolves the issue.

    However, I need all of the above to be enabled.

    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="AjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnRefresh">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="phFields" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <asp:placeholder id="phFields" runat="server">
                    <telerik:RadEditor ID="RadEditor1" runat="server">
                    </telerik:RadEditor>
                    <telerik:RadEditor ID="RadEditor2" runat="server" ToolProviderID="RadEditor1">
                    </telerik:RadEditor>
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
                    <asp:ListItem Text="a"></asp:ListItem>
                    <asp:ListItem Text="b"></asp:ListItem>
                    <asp:ListItem Text="c"></asp:ListItem>
                    </asp:DropDownList>
                </asp:placeholder>
    <asp:button id="btnRefresh" runat="server" />
    </form>

    Any help or direction would be greatful.  This error appears to be disabling pop-ups with RadWindow.
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 09 Jan 2015 Link to this post

    Hello Alex,

    Using the markup provided, I am encountering a different error - Uncaught TypeError: Cannot read property 'toolBarContainer' of undefined. Although, the same is thrown by pressing the button.

    This error is encountered due to the configuration of the AjaxManager. Configuring the #btnRefresh to update only the #phField, does not update properly the RadEditor controls on the page. I recommend updating the controls themselves, so to know that they will be properly ajaxified.

    <telerik:RadAjaxManager ID="AjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnRefresh">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadEditor1" />
                    <telerik:AjaxUpdatedControl ControlID="RadEditor2" />
                    <telerik:AjaxUpdatedControl ControlID="DropDownList1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="DropDownList1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadEditor1" />
                    <telerik:AjaxUpdatedControl ControlID="RadEditor2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <asp:PlaceHolder ID="phFields" runat="server">
        <telerik:RadEditor ID="RadEditor1" runat="server" >
        </telerik:RadEditor>
        <telerik:RadEditor ID="RadEditor2" runat="server" ToolProviderID="RadEditor1">
        </telerik:RadEditor>
        <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
            <asp:ListItem Text="a"></asp:ListItem>
            <asp:ListItem Text="b"></asp:ListItem>
            <asp:ListItem Text="c"></asp:ListItem>
        </asp:DropDownList>
    </asp:PlaceHolder>
    <asp:Button ID="btnRefresh" runat="server" />

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex
    Alex avatar
    31 posts
    Member since:
    Jun 2011

    Posted 09 Jan 2015 in reply to Ianko Link to this post

    Ianko, this did not seem to help.  I continue to get the same error message.  How can I send a complete test project?
  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 13 Jan 2015 Link to this post

    Hi Alex,

    You can use any available file-sharing service (e.g., DropBox, OneDrive etc.) to upload and share the sample which troubles you.

    If it is less than 20mb (in a zip archive), you can add it as an attachment to your post too.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top