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

Cannot read property set_additionalQueryString of null

5 Answers 110 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 07 Jan 2015, 11:58 PM
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.

5 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 09 Jan 2015, 09:24 AM
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.

 
0
Alex
Top achievements
Rank 1
answered on 09 Jan 2015, 01:04 PM
Ianko, this did not seem to help.  I continue to get the same error message.  How can I send a complete test project?
0
Ianko
Telerik team
answered on 13 Jan 2015, 06:38 AM
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.

 
0
Vincent
Top achievements
Rank 1
answered on 25 Jan 2018, 05:52 PM
This is an extremely old thread, but I was wondering if there was anything of value in the resolution of this issue that could be shared with the community?
0
Alex
Top achievements
Rank 1
answered on 25 Jan 2018, 05:58 PM
Vincent, sorry, I don't recall what the resolution of the issue was. I believe that the solution had something to do with reorganizing the controls within the ajax settings.
Tags
Editor
Asked by
Alex
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Alex
Top achievements
Rank 1
Vincent
Top achievements
Rank 1
Share this question
or