Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
5 views
After upgrading from 2019 to 2025.4.1210.462, I am experiencing a JavaScript error when my ASP.NET Web Forms application is opened from Encompass Desktop (embedded browser). The same pages work in modern browsers (Chrome/Edge), but fail inside Encompass.

Environment
Product: Telerik UI for ASP.NET AJAX
Version: 2025.4.1210.462
.NET Framework: 4.8
App type: ASP.NET Web Forms
IIS: Integrated pipeline
Host path: /DocPrep/
Controls used: RadScriptManager, RadAjaxManager, RadGrid, RadComboBox, RadAjaxPanel, etc.
Entry page from Encompass: Validation.aspx (standalone page, not using a master page)
Telerik CDN: Disabled
RadScriptManager: EnableScriptCombine="false"

Error

When opening DocPrep from Encompass Desktop, users see:

An error has occurred in the script on this page.

Line: 1
Char: 173461
Error: Invalid character
Code: 0
URL: /DocPrep/ScriptResource.axd?d=...

What we found
When inspecting the script response, we see modern JavaScript syntax that appears incompatible with the Encompass embedded browser (IE-like engine), for example:

_renderActiveItemStyle:function(e){
  var t=this.get_owner().get_id(),
  i=`${t}_ActiveItemStyle`;
  ...
  e=e.replaceAll(";"," !important;");
  ...
}

It looks like ES6 template literals and replaceAll() are causing a parse error in the embedded browser.

Questions
1) Is Q1 2025 officially unsupported in Internet Explorer/embedded WebBrowser-style hosts such as Encompass Desktop?
2) Is the _renderActiveItemStyle function with template literals expected in Q1 2025 RadGrid scripts?
3) Is there any supported configuration to serve IE-compatible JavaScript while staying on Q1 2025?
     e.g. OutputCompression, CDN, RenderMode, legacy script bundle, etc.
4) If not, what is the recommended Telerik version for IE/embedded browser scenarios - is R3 2022 SP1 (2022.3.1109) the last supported release?
1 answer
4 views
After upgrading from 2019 to 2025.4.1210.462, I am experiencing a JavaScript error when my ASP.NET Web Forms application is opened from Encompass Desktop (embedded browser). The same pages work in modern browsers (Chrome/Edge), but fail inside Encompass.

Environment
Product: Telerik UI for ASP.NET AJAX
Version: 2025.4.1210.462
.NET Framework: 4.8
App type: ASP.NET Web Forms
IIS: Integrated pipeline
Host path: /DocPrep/
Controls used: RadScriptManager, RadAjaxManager, RadGrid, RadComboBox, RadAjaxPanel, etc.
Entry page from Encompass: Validation.aspx (standalone page, not using a master page)
Telerik CDN: Disabled
RadScriptManager: EnableScriptCombine="false"

Error

When opening DocPrep from Encompass Desktop, users see:

An error has occurred in the script on this page.

Line: 1
Char: 173461
Error: Invalid character
Code: 0
URL: /DocPrep/ScriptResource.axd?d=...

What we found
When inspecting the script response, we see modern JavaScript syntax that appears incompatible with the Encompass embedded browser (IE-like engine), for example:

_renderActiveItemStyle:function(e){
  var t=this.get_owner().get_id(),
  i=`${t}_ActiveItemStyle`;
  ...
  e=e.replaceAll(";"," !important;");
  ...
}

It looks like ES6 template literals and replaceAll() are causing a parse error in the embedded browser.

Questions
1) Is Q1 2025 officially unsupported in Internet Explorer/embedded WebBrowser-style hosts such as Encompass Desktop?
2) Is the _renderActiveItemStyle function with template literals expected in Q1 2025 RadGrid scripts?
3) Is there any supported configuration to serve IE-compatible JavaScript while staying on Q1 2025?
     e.g. OutputCompression, CDN, RenderMode, legacy script bundle, etc.
4) If not, what is the recommended Telerik version for IE/embedded browser scenarios - is R3 2022 SP1 (2022.3.1109) the last supported release?
1 answer
132 views
We recently migrated our website over from a 2012 server to a 2022 server. Upon migration we're now receiving the following error:
Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
Telerik.Web.UI.InsecureExternalStyleSheetException: Telerik.Web.UI.InsecureExternalStyleSheetException: The style sheet '~/Scripts/app.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
  at Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(String scriptRelativePath)

We then found this link: Telerik Forums Post

Following the instructions, we now have the following in our web.config file in <appSettings>:
<add key="Telerik.Web.UI.StyleSheetFolders" value="~/Scripts/; ~/styles/; ~/ReportViewer/js/; ~/kendo/js/;" />
We added multiple value's for the multiple different files that were being placed in the error messages.

We also ensured that our Master files for our different types of pages have been updated to match:

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <telerik:RadScriptReference Path="~/Scripts/app.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1">
            <StyleSheets>
                <telerik:StyleSheetReference Path="~/Scripts/app.js" />
            </StyleSheets>
        </telerik:RadStyleSheetManager>
The errors are still being thrown. The pages work fine, but we don't want to be continuously being given these errors over and over again in Stackify.
Rumen
Telerik team
 answered on 21 Nov 2024
0 answers
351 views

Hi Team,
I tried following steps to use RadMultiSelect dropdown in my project but getting compile time error . 
1) I have registered Telerik.Web.UI assembly in aspx page
2) Added RadScriptManager and RadSkinManager on aspx page.
3) then added following code - 
<telerik:RadMultiSelect runat="server" DataValueField="text" Filter="Contains" EnforceMinLength="false" Placeholder="Select Receiptees"
    DataTextField="text" Width="500px" ID="requiredMultiSelect">
<Items>
<telerik:MultiSelectItem Text="Steven White"></telerik:MultiSelectItem>
<telerik:MultiSelectItem Text="Nancy King"></telerik:MultiSelectItem>
</Items>
</telerik:RadMultiSelect>   
4) added this line in aspx.vb file for default selection
requiredMultiSelect.Value = {"Anne King", "Andrew Fuller"}

And getting compile time error -
Type 'Global.Telerik.Web.UI.RadMultiSelect' is not defined.

Not able to find solution for this on telerik webpage also , Can anyone please help me with this?

  

0 answers
187 views

I am trying to disable embeddedscripts for radgrid - everything works but context menu - which scripts altogether do I need to add?

This write up (linked below) is incorrect or out of date - can someone please help.

https://docs.telerik.com/devtools/aspnet-ajax/getting-started/performance/disabling-embedded-resources#disabling-embedded-resources

John
Top achievements
Rank 1
 asked on 04 Apr 2023
1 answer
357 views

Hello,

I have a problem with RadScriptManager

I have an exisiting ASP.Net Web Forms web application.

There is Default.aspx and used Main.Master master page

I did the necessary to integrate Telerik UI Web correctly.

In the master page there is <asp:ScriptManager ID="ScriptManager...

and in the Default.aspx I added <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

and <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />

and <telerik:RadWindowManager RenderMode="Lightweight"....

and <button onclick="openReqForm(); return false;">hello</button>

in code behind:

string fctOpenReqForm = "<script type=\"text/javascript\">function openWin {var oWnd = radopen(\"Request.aspx\", \"RadWindow1\"); } </script>";

Page.ClientScript.RegisterStartupScript(this.GetType(), "openReqForm", fctOpenReqForm);

 

When I execute I have an error message: "Only one instance of script manager can be added to the page...

I need to add a Telerik button and other telerik things to the page and use javascript methods...

Any help? thanks

 

Peter Milchev
Telerik team
 answered on 02 Aug 2022
0 answers
755 views

Hi,

I have been throught a lot of trouble making work telerik controls with a proxy. I'm using asp.net webform on IIS with .net 4.5 and Telerik  2020.3.1021.45

I recently added a reverse proxy (ARR) to IIS to make my website work with the blue/green pattern to get a 0 downtime deployment. So I get a webfarm that redirect to the live website with the reverseproxy. Every things work great except telerik controls.

I get many javascript exception that make me think that the telerik webressource doesnt seems to get through the proxy :  

  • ASP.NET Ajax client-side framework failed to load
  • 'Sys' is undefined
  • “Telerik.Web.UI” is undefined

I tried to change many stuff but without sucess :

 

I don't know what to check next. Thank you for your advices/ideas...

 

JF

 

End User
Top achievements
Rank 1
 asked on 01 Aug 2022
1 answer
332 views

I have a master page with the following code:

        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="True" EnableCdn="True" EnablePartialRendering="True">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>

My SignalR Javascript code:

<!--Script references. --> <!--Reference the jQuery library. --> <script src="Scripts/jquery-3.6.0.min.js"></script> <!--Reference the SignalR library. --> <script src="Scripts/jquery.signalR-2.4.3.min.js"></script> <!--Reference the autogenerated SignalR hub script. --> <script src="signalr/hubs"></script><telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> $(function () { // Declare a proxy to reference the hub.

// Error Line var hub = $.connection.progressHub; // Create a function that the hub can call to report progress. hub.client.receiveMessge = function (Item) { $('#<%=lblCurrRec.ClientID%>').html(Item.SITE_CODE); $('#<%=lblStat.ClientID%>').html(Item.STATUS); $('#<%=lblRes.ClientID%>').html(Item.MESSAGE); }; hub.client.UpdateTotal = function (iTotal, iSent, iNotSent) { $('#<%=lblTotal.ClientID%>').html(iTotal); $('#<%=lblRecsProc.ClientID%>').html(iSent); $('#<%=lblErrorRecs.ClientID%>').html(iNotSent); }; $.connection.hub.start(); }); </script> </telerik:RadScriptBlock>

When I run the code I get the following error:

 Cannot read properties of undefined (reading 'progressHub')

If I put all this in it's own test page and replace the RadScriptManager with the following it works flawlessly:

<asp:ScriptManager ID="MainScriptManager" runat="server" EnablePartialRendering="true" EnablePageMethods="true" AsyncPostBackTimeout="600" />
The problem is...other stuff breaks if I don't use the RadScriptManager.  It has something to do with the Telerik.Web.UI.Common.jQuery
Peter Milchev
Telerik team
 answered on 14 Jun 2022
1 answer
193 views

Hi There,

I have been reviewing quite a few forum posts and trying different suggestions, but I haven't found a solution that works for my situation. Help would be greatly appreciated. It's probably something simple that I'm missing.

I have a page that includes RadScriptManager, RadAjaxManager, RadSplitter, RadPane (with regular local content), RadSplitBar, and RadPane2 (contains other aspx pages like an iframe).

When RadPane2 contains another page, even if it's not an AJAX page, JavaScript calls to the RadAjaxManager from the primary page only fire the first time. I'm trying to call a method on the code behind page to update an item in a RadMenu.

If I have all the content is on one page without referring to a separate page, I can make multiple calls to the RadAjaxManager without problems.

Pieces of the code:

 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                  <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="rmCounts"></telerik:AjaxUpdatedControl>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
</telerik:RadAjaxManager>

 

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" >
        <script type="text/javascript" language="JavaScript">
             function countUpdate() {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxManager.ajaxRequest("updateCounts");
                return false;      }
        </script>
        </telerik:RadCodeBlock>

Example code behind method:

        public void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            updateCountsCodeBehind();
        }

 

Thanks,

Dan

Dan
Top achievements
Rank 1
Iron
 answered on 09 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?