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

Problem with Telerik.Web.UI, Version=2015.1.225.45

7 Answers 194 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 30 Mar 2015, 10:03 PM
We are facing below issue with latest  telerik control please provide help on it, its very urgent


Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35:en-US:f319b152-218f-4c14-829d-050a68bb1a61:ea597d4b:b25378d2;Telerik.Web.UI, Version=2015.1.225.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4:en-US:d3cd47d0-4d93-4bad-8b9f-f9fea0aa4c69:16e4e7cd:f7645509:24ee1bba:6d43f6d9:2003d0b8:f46195d3:c


below is our config settings




<?xml version="1.0"?>
<configuration>

<appSettings>

<add key="vs:EnableBrowserLink" value="false"/>
</appSettings>

<connectionStrings>

</connectionStrings>
<!--Start CM Config-->
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IReleaseNotesService"/>
<!-- Remove if not using Healthwise Integration -->
<binding name="DrugInteractionsSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="6553600" maxBufferPoolSize="524288" maxReceivedMessageSize="6553600" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="6553600" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://help.Lumeris.com/Api/v1.0/ReleaseNotes.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IReleaseNotesService" contract="Client.IReleaseNotesService" name="BasicHttpBinding_IReleaseNotesService"/>
<!-- Remove if not using Healthwise Integration -->
<endpoint address="http://dicapi.healthwise.net/DrugInteractions.asmx" binding="basicHttpBinding" bindingConfiguration="DrugInteractionsSoap" contract="HealthwiseService.DrugInteractionsSoap" name="DrugInteractionsSoap"/>
</client>
</system.serviceModel>
<!--End CM Config-->


<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
-->
<system.web>
<httpRuntime encoderType="System.Web.Security.AntiXss.AntiXssEncoder" requestValidationMode="2.0" executionTimeout="43200" maxRequestLength="1048576" maxQueryStringLength="9999"/>
<compilation debug="false" targetFramework="4.5.1">
<assemblies>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<!--Devexpress-->
<add assembly="Ext.Net, Version=1.0.4093.32349, Culture=neutral, PublicKeyToken=2E12CE3D0176CD87"/>
<!--CM Config-->
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>

</compilation>
<customErrors mode="Off"/>

<authorization>
<deny users="?"/>
</authorization>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="240"/>

<pages autoEventWireup="true" enableSessionState="true" enableViewState="true" enableViewStateMac="true" maxPageStateFieldLength="1000" validateRequest="true" controlRenderingCompatibilityVersion="3.5">
<controls>

<add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>

<!--End CM Config-->
</controls>
</pages>
<httpHandlers>
<clear/>

<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler,Telerik.Web.UI" validate="false"/>
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" validate="false"/>

</httpHandlers>
<httpModules>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>

</httpModules>

<identity impersonate="false"/>
</system.web>

<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800" maxQueryString="9999"/>
</requestFiltering>
</security>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>

<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode"/>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>


<!--Start CM Config-->
<add name="TelerikWebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
<add name="TelerikWebDialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" preCondition="integratedMode"/>
<add name="TelerikChartHandler" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI"/>
<add name="TelerikSpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler,Telerik.Web.UI"/>
<add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler"/>
<!--End CM Config-->

</handlers>
<defaultDocument>
<files>
<add value="login.aspx"/>
</files>
</defaultDocument>
<httpProtocol>
<customHeaders>
<clear/>
<add name="X-UA-Compatible" value="IE=EmulateIE8"/>
</customHeaders>
</httpProtocol>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

7 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Apr 2015, 08:55 PM
Hello,

I assume that you had already revised the following article, describing the cause and the solutions for such problems:
http://www.telerik.com/forums/telerik-web-ui-webresource-axd-unhandled-exception
If you are not, please try the provided solutions and let us know the behavior.

You can also check the following article in the documentation:
http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html 

Another thing you can try is the script CDN we offer: http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html so that the scripts are not loaded from your own server, in case the problem stems from the webresource requests.

If you are using RadScriptManager you can try disabling the script combining by setting the EnableScriptCombine property to false and see if it makes any difference.

Regards,
Pavlina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Srinivas
Top achievements
Rank 1
answered on 19 Jun 2015, 09:22 PM

Still I am getting error, I tried all your suggestions provided in the links. 

I am using RadSplitter in one and showing 2 web pages in that splitter.

All 3 pages have RadScriptmanagers, I tried to replace those with ScriptManager that approach also not working for me.

I tried to remove RadScriptmanager from one child page placed in RadSplitter, not generating any script error, but as you know, without ScriptManager RadPanel in that page is not rendered.I 

I am looking for your help to resolve this script issue.

0
Srinivas
Top achievements
Rank 1
answered on 19 Jun 2015, 09:31 PM
I am attaching error screen and script captured in debug mode, looking for your help ASAP.
0
Pavlina
Telerik team
answered on 24 Jun 2015, 09:36 PM
Hello,

In order to investigate the error further and provide more to the point answer we need to replicate the issue locally. Therefore I would like to ask you to isolate the problem in a sample project and send it to us via support ticket. We will debug it and will provide a solution/fix for it. Thank you for your cooperation in advance.

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Guru Karun
Top achievements
Rank 1
commented on 01 May 2025, 11:49 AM | edited

we are using telerik-web-ui version 2015-1-225-45

when we try to open radwindow
facing the issue like : Uncaught TypeError: Cannot read properties of undefined,

here is my aspx client side javascript

var IMPORTID = args;
                var owin = window.radopen(null, "ReqMgrPopUp");
                if (owin) {                    
                    owin.close();
                }                
                owin = window.radopen("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID, "ReqMgrPopUp");                
                if (owin) {
                    owin.set_title("Blumen Message Wizard");
                    owin.setSize(1080, 600);
                    owin.set_visibleStatusbar(false);
                    owin.show();
                    owin.center();
                }
                else {
                    console.error("RadWindowManager is not initialized.");
                    console.log("RadWindowManager is found."); }

and console ScriptResource response details:

ScriptResource.axd?d=Kq8x-fTxKKZdPEjzECZXG7ivoFQQcDC6hBr2M8BuU2DzJGgw6dqK9Ptqeh7gwc9FN55bCUIlGoEj-JhXlyEvxcqLRUAlHswIYylkQ_v2OQzQ1B0rE9D1oKCaJVFVZIuMSmJxl4J7JjljqSRtzWAhFsNvj7o1&t=112cd203

also find attached script file in plan text format

Note: Radwindow working fine in mozilla firefox, where as in IE and google Chromo not working
exception: Radwindow undefined.

telerik control assigning like

 <telerik:RadWindowManager ID="rwmReqMgr" runat="server" EnableViewState="false">
        <Windows>
            <telerik:RadWindow ID="ReqMgrPopUp" runat="server" ShowContentDuringLoad="true" AutoSize="true"
                VisibleTitlebar="true" Title="Filter Request" Modal="true" ReloadOnShow="true"
                VisibleStatusbar="false">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

Please guide us to resolve this radwindow popup issue

0
Rumen
Telerik team
answered on 01 May 2025, 12:12 PM

Hi Guru,

It looks like the issue you're facing is due to how window.radopen is being accessed before the RadWindowManager is fully initialized, especially in IE and Chrome. In Telerik version 2015.1.225.45, there are some known quirks with RadWindow and how the client-side scripts get initialized across different browsers.

A few things to check and try:

  1. Ensure RadWindowManager is on the page before any scripts run.
    Sometimes, the script runs before the Telerik controls are initialized. You can delay your code execution until the RadWindowManager is ready by wrapping it inside a Sys.Application.add_load or pageLoad()MS AJAX events. For example:
    Sys.Application.add_load(function () {
        var IMPORTID = args;
        var owin = window.radopen(null, "ReqMgrPopUp");
        if (owin) {
            owin.close();
        }
        owin = window.radopen("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID, "ReqMgrPopUp");
        if (owin) {
            owin.set_title("Blumen Message Wizard");
            owin.setSize(1080, 600);
            owin.set_visibleStatusbar(false);
            owin.show();
            owin.center();
        } else {
            console.error("RadWindowManager is not initialized.");
        }
    });

  2. Use getWindowByName instead of window.radopen.
    You’ve set ID="rwmReqMgr" in your markup. To be more robust, access the RadWindow like this:
    Sys.Application.add_load(function () {
        var IMPORTID = args;
        var manager = $find("<%= rwmReqMgr.ClientID %>");
        if (manager) {
            var owin = manager.getWindowByName("ReqMgrPopUp");
            if (owin) {
                owin.setUrl("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID);
                owin.set_title("Blumen Message Wizard");
                owin.setSize(1080, 600);
                owin.set_visibleStatusbar(false);
                owin.show();
                owin.center();
            } else {
                console.error("Could not find the RadWindow.");
            }
        } else {
            console.error("RadWindowManager is not initialized.");
        }
    });
    This avoids relying on the global window.radopen, which can be undefined if initialization hasn't completed properly.
  3. Check script loading order.
    Make sure your script is placed after the RadWindowManager declaration.
  4. Browser differences.
    Since it works in Firefox but fails in IE/Chrome, it suggests a race condition or timing issue in script initialization. This was a common issue in older Telerik versions where the Microsoft AJAX framework (ScriptResource.axd) behaves inconsistently across browsers.
  5. Upgrade to the latest version, where the problem is likely fixed.

Security Note:
It’s important to mention that Telerik 2015.1.225.45 is an outdated version and contains known security vulnerabilities, including serious ones like the Telerik UI vulnerability (CVE-2019-18935, and others). For security and browser support and compliance reasons, you should strongly consider upgrading to the latest version of Telerik UI for ASP.NET AJAX to avoid exploitation risks. Many of these vulnerabilities are actively targeted and could expose your application to attacks.

Please try these adjustments and let us know if the issue persists - or if you can open a support ticket and share a minimal reproducible sample for further debugging.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Guru Karun
Top achievements
Rank 1
commented on 01 May 2025, 12:31 PM | edited

Thank you Rumen for quick response.

But we tried to used  this pease of code :Sys.Application.add_load(function ....

no results.

Here is my complete code behind C# code and front end script

C# code behind aspx.cs

 UbAjaxMngr.ResponseScripts.Add("Report('" + IMPORTID + "');");

front end aspx page

function Report(args) {
                alert("The data has been imported. Please continue to view the Import Report"); //, 400, 200, "App Message Box");
                var IMPORTID = args;
                var owin = window.radopen(null, "ReqMgrPopUp");
                if (owin) {                    
                    owin.close();
                }
                //alert("Its not opened");
                owin = window.radopen("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID, "ReqMgrPopUp");
               
                if (owin) {
                    owin.set_title("Blumen Message Wizard");
                    owin.setSize(1080, 600);
                    owin.set_visibleStatusbar(false);
                    owin.show();
                    owin.center();
                }
                else {
                    console.error("RadWindowManager is not initialized.");
                    console.log("RadWindowManager is found.");}
            }

Note: IMPORTID  is GUID like :37a0c19a-f376-43d7-8abb-d140bead043e

we try again, if the problem persists despite initial attempts, we notify to management its an outdated version

 

 

Rumen
Telerik team
commented on 01 May 2025, 01:06 PM

Thanks for the additional details.

From what you've shared, I can see that the Report function is being triggered via:

UbAjaxMngr.ResponseScripts.Add("Report('" + IMPORTID + "');");

This means the function is being called as soon as the AJAX request completes, which is good, but it also means it might still be running before the RadWindowManager is fully initialized on the client side – especially if the page load and scripts are not yet complete.

A few points and recommendations:

  1. Try using $find() to avoid relying on window.radopen.
    Even though you are calling window.radopen, it's safer to directly find the window by name using the RadWindowManager instance, as mentioned earlier. Here’s how you can modify your Report function:
    function Report(args) {
        alert("The data has been imported. Please continue to view the Import Report");
    
        var IMPORTID = args;
        var manager = $find("<%= rwmReqMgr.ClientID %>");
        if (manager) {
            var owin = manager.getWindowByName("ReqMgrPopUp");
            if (owin) {
                owin.setUrl("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID);
                owin.set_title("Blumen Message Wizard");
                owin.setSize(1080, 600);
                owin.set_visibleStatusbar(false);
                owin.show();
                owin.center();
            } else {
                console.error("RadWindow with the name 'ReqMgrPopUp' not found.");
            }
        } else {
            console.error("RadWindowManager is not initialized.");
        }
    }
    This avoids the dependency on window.radopen, which can be undefined or problematic in certain browsers and setups.
  2. Check if the RadWindowManager is on the page at the time of your AJAX response.
    If your RadWindowManager is placed inside an UpdatePanel, note that sometimes controls inside UpdatePanels don't initialize properly on partial page updates. In that case, you might need to ensure:
  3. Double-check your RadWindowManager markup. Make sure this is not inside an UpdatePanel unless really necessary.
  4. Browser developer tools check.
    To confirm if the manager is loaded, inspect the rendered page source first in the DevTools console (F12) to find the actual ClientID that ASP.NET generated for radwindowmanager. It will look something like
<div id="ctl00_ContentPlaceholder1_RadWindowManager1" style="display:none;">
Then, in the browser console, manually type:

$find("ctl00_ContentPlaceholder1_RadWindowManager1")

This will allow you to confirm whether the RadWindowManager is properly initialized on the client side. If it returns null, it means the RadWindowManager hasn't been initialized yet or there’s a loading issue; if it returns an object, it’s working as expected.

Here is how to do it in this demo: https://demos.telerik.com/aspnet-ajax/window/examples/windowmanager/defaultcs.aspx, e.g.



Let me know if you're able to try the $find approach or if you can confirm whether the RadWindowManager is inside an UpdatePanel!

Guru Karun
Top achievements
Rank 1
commented on 02 May 2025, 12:06 PM | edited

Hi @Rumen, Thank you for updates,

here i implemneted the code like

C# code behind aspx.cs

 UbAjaxMngr.ResponseScripts.Add("Report('" + IMPORTID + "');");

front end aspx page updated

// Placeholder function to register Report via Sys Application load
    function Report(args) {
        Sys.Application.add_load(function () {
            ReportUpdated(args);
  //Clear args at the end
   args = "";
        });
    }
            function ReportUpdated(args) {
                alert("The data has been imported. Please continue to view the Import Report");
                var IMPORTID = args;
var manager = $find("<%= rwmReqMgr.ClientID %>");
if (manager) {
var owin = manager.getWindowByName("ReqMgrPopUp");
console.log("RadWindow Manager Working Tecnics: ");
if (owin) {
owin.setUrl("../../Reports/Pages/Script/frmScript_report.aspx?IMPORTID=" + IMPORTID);
owin.set_title("Blumen Message Wizard");
owin.setSize(1080, 600);
owin.set_visibleStatusbar(false);
owin.show();
owin.center();
} else {
console.error("Could not find the RadWindow.");
                  }
  } 
else  {
console.log("RadWindowManager is not initialized.");
      }
// Clear args at the end
   args = null;
        } 

Working good for all browsers (IE,Chromo,Mozilla) But,

ref screenshots:

Up to here working good, Script Import Mapping functions correctly in both Internet Explorer and Google Chrome.However, an Issue occurs: after viewing the report, when navigating to the history tab, the report view reappears, which is inconsistent with the existing functionality. The report view in the history tab does not disappear until the X button is clicked to close the current main field details.

here is the screen shots

Above screen should not display report popup again.

It should  display screen like below

Provideing History Tab code

// For History Tab

<telerik:RadPageView ID="rpvHistory" runat="server">
                <table width="99%">
                    <tr>
                        <td align="right">
                            <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="../../Image/remove.png"
                                AlternateText="Delete Report" SkinID="Remove" Height="25px" Width="25px" OnClick="Deletereport" />Delete
                            Report
                            <asp:ImageButton runat="server" ImageUrl="../../Image/View-report.png" AlternateText="View Report"
                                Height="25px" Width="25px" OnClick="showreport" />Print Report
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadGrid ID="grdHistory" runat="server" AutoGenerateColumns="false" Skin="Office2007"
                                ItemStyle-Wrap="true" Height="330px">
                                <MasterTableView ClientDataKeyNames="IMPORTID" Width="100%" HeaderStyle-Height="25px"
                                    ItemStyle-Height="25px">
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderText="REPORT NAME" DataField="REPORTNAME">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Table Name's" DataField="TABLENAMES">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Import-Date & Time" DataField="IMPORT_DATETIME">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </MasterTableView>
                                <ClientSettings>
                                    <ClientEvents OnRowClick="histrowClick" OnRowDblClick="grdhistdblClick" />
                                    <Scrolling AllowScroll="true" SaveScrollPosition="true" ScrollHeight="150" UseStaticHeaders="true" />
                                    <Selecting AllowRowSelect="true" />
                                </ClientSettings>
                            </telerik:RadGrid>
                            <asp:LinkButton runat="server" ID="lnkHistory" OnClick="showreport"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>

// telerik tab strips
<telerik:RadTabStrip ID="Imp_tabstrip" runat="server" MultiPageID="imp_pgview" OnClientTabSelected="ClientTabSelected">
            <Tabs>
                <telerik:RadTab runat="server" Text="MAIN" PageViewID="RpvMain" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="YEARLY" PageViewID="rpvYEARLY" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="SEMESTER" PageViewID="rpvsemister" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="COURSES" PageViewID="rpvCOURSES" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="CONTACT" PageViewID="rpvCONTACT" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="MAINCFIELDS" PageViewID="rpvMAINCFIELDS" Visible="false">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="History" PageViewID="rpvHistory">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="NoAccess" PageViewID="rpvNoAccess" Visible="false">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>

//Here tab selected change js code
function ClientTabSelected(sender, args) {
                var tab = args.get_tab();
                if (tab.get_text() == "History") {
                    $find("<%= UbAjaxMngr.ClientID %>").ajaxRequest("loadTabs");
                }
            }

// telerik control details

<telerik:RadAjaxManager ID="UbAjaxMngr" runat="server" OnAjaxRequest="UbAjaxMngr_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="UbAjaxMngr">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="AjaxloadingDiv" />
                    <telerik:AjaxUpdatedControl ControlID="Ajaxloadingimg" />
                    <telerik:AjaxUpdatedControl ControlID="litErrorMsg" />
                    <telerik:AjaxUpdatedControl ControlID="rlExcellFields" />
                    <telerik:AjaxUpdatedControl ControlID="RadGridYearly" />
                    <telerik:AjaxUpdatedControl ControlID="RadgrdSemister" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrdCourses" />
                    <telerik:AjaxUpdatedControl ControlID="asncMainFilUpload" />
                    <telerik:AjaxUpdatedControl ControlID="RadAsyYearlyUpload" />
                    <telerik:AjaxUpdatedControl ControlID="asncSEMfilupload" />
                    <telerik:AjaxUpdatedControl ControlID="asncCORSfilupload" />
                    <telerik:AjaxUpdatedControl ControlID="hdnMainFields" />                    
                    <telerik:AjaxUpdatedControl ControlID="hdnYearlyFields" />
                    <telerik:AjaxUpdatedControl ControlID="hdnSemisterfields" />
                    <telerik:AjaxUpdatedControl ControlID="hdncoursefields" />
                    <telerik:AjaxUpdatedControl ControlID="Imp_tabstrip" />
                    <telerik:AjaxUpdatedControl ControlID="hdnTableNames" />
                    <telerik:AjaxUpdatedControl ControlID="grdHistory" />
                    <telerik:AjaxUpdatedControl ControlID="hdnhistImpid" />
                    <telerik:AjaxUpdatedControl ControlID="hdnMainUnique" />
                    <telerik:AjaxUpdatedControl ControlID="hdnYearlyUnique" />
                    <telerik:AjaxUpdatedControl ControlID="hdnCoursesUnique" />
                    <telerik:AjaxUpdatedControl ControlID="hdnSemesterUnique" />
                    <telerik:AjaxUpdatedControl ControlID="hdnSuccessids" />                    
                    <telerik:AjaxUpdatedControl ControlID="hdnMinimumStuids" />
                    <telerik:AjaxUpdatedControl ControlID="hdnSelectFCfields" />                    
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

So where i need to update in tab history selected cahnge event to avoid again to diaply report popup.

Please guide us.

https://www.telerik.com/forums/radtabstrip-working-in-properly-displays-previous-report-popups#1686488

 

 

 

                                                                                                                                           
0
Rumen
Telerik team
answered on 06 May 2025, 01:29 PM

Hi Guru,

To resolve the issue of the report popup reappearing when navigating to the history tab, you need to ensure that the popup is triggered only when necessary. Here's a step-by-step guide to help you address the problem:

1. Manage Popup State
Ensure that the popup is only opened when it is required. You can use a flag to track whether the popup should be displayed.

2. Update Client-Side Code
Modify the ClientTabSelected function to prevent the popup from being shown when the "History" tab is selected. You can add a condition to check if the popup is already open and avoid reopening it.

function ClientTabSelected(sender, args) {
    var tab = args.get_tab();
    if (tab.get_text() === "History") {
        // Check if the report popup is already shown
        var manager = $find("<%= rwmReqMgr.ClientID %>");
        if (manager) {
            var owin = manager.getWindowByName("ReqMgrPopUp");
            if (owin && owin.isVisible()) {
                // If the popup is visible, do not trigger it again
                console.log("Popup is already visible, not opening again.");
                return;
            }
        }
        // Proceed with AJAX request if needed
        $find("<%= UbAjaxMngr.ClientID %>").ajaxRequest("loadTabs");
    }
}

3. Server-Side Logic
Ensure that your server-side logic does not re-trigger the popup when navigating to the history tab. Handle the AjaxRequest event and decide whether to trigger the popup based on the request argument.

protected void UbAjaxMngr_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "loadTabs")
    {
        // Logic to determine if the popup should be re-opened
        // For example, check if it's already open or if it should be opened
        // UbAjaxMngr.ResponseScripts.Add("Report('" + IMPORTID + "');");
    }
}

4. Debugging
Use browser console logs to verify that the popup is not being triggered unintentionally.
Ensure that the Report function is not being called from any other unintended part of the code.
By implementing these changes, you should be able to control the behavior of the report popup and prevent it from appearing again when switching to the history tab. If the issue persists, isolate it in a simple runnable project and send it for examination via a support ticket.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Guru Karun
Top achievements
Rank 1
commented on 06 May 2025, 02:05 PM | edited

Thanks for Replay @Rumen , 

For server side code as you mentioned, 

protected void UbAjaxMngr_AjaxRequest(object sender, AjaxRequestEventArgs e) { if (e.Argument == "loadTabs") { // Logic to determine if the popup should be re-opened// For example, check if it's already open or if it should be opened// UbAjaxMngr.ResponseScripts.Add("Report('" + IMPORTID + "');"); } }

// Here is our code

protected void UbAjaxMngr_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
       
        try
        {
            if (e.Argument == "bindMain")
                BindExcellFields("MAIN");           
            else if (e.Argument == "bindCource")
                BindExcellFields("COURSES");
else if (e.Argument == "loadTabs")
            {
                if (Imp_tabstrip.SelectedTab.PageViewID == "rpvHistory")
                    BindHistory();
            }
        }
        catch (Exception ex)
        {
            litErrorMsg.Text = ex.Message;
            ErrorHandler objErrorHandler = new ErrorHandler();
            objErrorHandler.LogError(ex);
        }
    } //Here Imp_tabstrip is RadTabStrip ID , rpvHistory is History tab ID and where as BindHistory method should required to load radgrid data in tabhistory content

Please suggest US...

 

 

           
Guru Karun
Top achievements
Rank 1
commented on 06 May 2025, 04:23 PM

due to using 

// Placeholder function to register Report via Sys Application load
    function Report(args) {
        Sys.Application.add_load(function () {
            ReportUpdated(args);
  //Clear args at the end
   args = "";
        });
    }

one of the reason using function Sys.Application.add_load ?

0
Rumen
Telerik team
answered on 06 May 2025, 06:45 PM

Hi Guru,

The Sys.Application.add_load method is a key feature of ASP.NET AJAX applications. It ensures that certain JavaScript code is executed only after the page has fully loaded. This is particularly useful when dealing with AJAX controls, as it guarantees that the necessary client-side objects are created and available before executing any operations on them. Here's why you might use this method:

  • Ensuring Correct Timing: The add_load method ensures that your JavaScript code runs at the appropriate time, after all client-side components have been initialized. This prevents errors related to accessing uninitialized or undefined objects.

  • Initialization of AJAX Controls: In the context of Telerik's AJAX controls, such as RadWindowManager, these controls are created during the Sys.Application.init event. Using Sys.Application.add_load makes sure that any operations involving these controls are performed after they are fully initialized.

  • Avoiding Common Errors: By deferring the execution of scripts until the load event, you avoid common errors like "object expected" or "undefined object," which occur when trying to manipulate DOM elements or AJAX controls before they are ready.

Addressing the Server-Side Code Issue

For your server-side code, it seems you're handling AJAX requests based on different arguments. In the UbAjaxMngr_AjaxRequest method, you're checking the argument passed and performing actions accordingly. To avoid reopening the report popup when navigating to the history tab, you should ensure that the logic in BindHistory() does not inadvertently trigger the popup. Here's what you can consider:

  • Conditionally Trigger Popup: Make sure that your server-side logic only triggers the popup when necessary. You might want to add a condition to check whether the popup should be displayed based on your application's state or user actions.

  • Clear Arguments: After handling the necessary operations, clear or reset any arguments or flags that might cause the popup to be triggered again unintentionally.

Example Code Snippet

You can modify your code to ensure the popup is only triggered when needed, by checking its visibility:

function ClientTabSelected(sender, args) {
    var tab = args.get_tab();
    if (tab.get_text() === "History") {
        var manager = $find("<%= rwmReqMgr.ClientID %>");
        if (manager) {
            var owin = manager.getWindowByName("ReqMgrPopUp");
            if (owin && owin.isVisible()) {
                console.log("Popup is already visible, not opening again.");
                return;
            }
        }
        $find("<%= UbAjaxMngr.ClientID %>").ajaxRequest("loadTabs");
    }
}

On the server side, ensure you do not trigger the popup unnecessarily:

protected void UbAjaxMngr_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "loadTabs")
    {
        if (Imp_tabstrip.SelectedTab.PageViewID == "rpvHistory")
        {
            BindHistory();
            // Ensure popup logic is not triggered here
        }
    }
}

By implementing these changes, you should be able to control the behavior of the report popup and prevent it from appearing again when switching to the history tab. If the issue persists, further debugging might be required to isolate the problem.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
General Discussions
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Srinivas
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or