radopen function is not working

2 posts, 1 answers
  1. Neda
    Neda avatar
    25 posts
    Member since:
    Oct 2011

    Posted 11 Dec 2011 Link to this post

    hi

    i am using window in one of my projects , and this is my following page with it's html ,i don't know why radopen  function is not working.
    at the end i have sent you my web.config file.

    Best Regards

    -----------------------------------------------------------------
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <div>
         <table style="width: 100%;">
                    <tr>
                        <td id="DecoratedControlsContainer">

                            <script type="text/javascript">
                            //<![CDATA[
                                function openRadWin() {
                            
    //                            var oWnd = $find("RadWindow1");
    //                            var myApt = eventArgs.get_Appointment();
    //                            oWnd.setUrl('http://www.telerik.com');
    //                            oWnd.show();
    radopen("http://www.telerik.com","RadWindow1");
                             // alert('test')
                            }
                            
                            function openPopUp()
                            {
                             window.open("http://www.telerik.com","WindowPopup","width=400px, height=400px, resizable");
                            }
                            
                            //]]>                                                                        
                            </script>
                            <button style="width: 150px; margin-bottom: 3px;" onclick="openRadWin(); return false;">open RadWindow</button><br style="clear:both" /><br style="clear:both" />
                        </td>
                        <td style="width: 50px;">
                            &nbsp;</td>
                        <td style="vertical-align: top; border-left: 1px solid #cccccc; padding-left: 40px;">
                            <button style="width: 170px; margin-bottom: 3px;" onclick="openPopUp(); return false;">open browser's popup</button><br style="clear:both" /><br style="clear:both" />
                        </td>
                    </tr>
                </table>  </div>
        <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default"
            InitialBehavior="None" NavigateUrl="http://www.telerik.com"
            VisibleOnPageLoad="True">
        </telerik:RadWindow>
        </form>
    </body>
    </html>
    ---------------------------------------------------------------------
    Web.Config File
    ------
    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <sectionGroup name="Miron.web">
                <section name="CompressorSettings" type="Miron.Web.MbCompression.SettingsConfigSection"/>
            </sectionGroup>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    </sectionGroup>
                </sectionGroup>
            </sectionGroup>
        </configSections>
        <appSettings>
            <!--<add key="DBNAME" value="Data Source=62.193.12.207;Initial Catalog=shahrdari;User ID=sa;Password=qwe1234"/>-->
            <!--<add key="DBNAMEShahryarnews" value="Data Source=62.193.12.207;Initial Catalog=shahryar;User ID=sa;Password=qwe1234"/>-->
            <add key="DBNAME" value="Data Source=pserver;Initial Catalog=Fanni_Herfei;User ID=sa;Password=Qwe123"/>
            <!--<add key="DBNAME" value="Data Source=server;Initial Catalog=pezeshki;User ID=sa;Password=Qwe1234"/>-->
            <add key="ExternalDBNAME" value="Data Source=192.168.1.1;Initial Catalog=Externalelib;User ID=sa;Password=1234"/>
            <add key="SiteUrl" value="http://itshams.ir"/>
            <add key="email" value="info@itshams.ir"/>
            <add key="Hejri" value="-1"/>
            <add key="SSlEmail" value="false"/>
        </appSettings>
        <system.net>
            <mailSettings>
                <smtp>
                    <network host="mail.itshams.ir" port="25" userName="vosei@itshams.ir" password="09141091985"/>
                </smtp>
            </mailSettings>
            <!--<mailSettings>
                <smtp>
                    <network host="smtp.gmail.com" port="587" userName="sazmane.amar@gmail.com" password="sazman5564" defaultCredentials="false"/>
                </smtp>
            </mailSettings>-->
        </system.net>
        <system.web>
            <httpRuntime maxRequestLength="409600" executionTimeout="300"/>
            <customErrors mode="On" defaultRedirect="Error.aspx?ErrorType=customErrors"/>
            <compilation debug="true" urlLinePragmas="true">
                <assemblies>
                    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
            </compilation>
            <httpHandlers>
                <add verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler" validate="true"/>
                <add verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler" validate="false"/>
                <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
                <add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler,ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd"/>
                <add verb="*" path="*js.axd" type="JavaScriptHandler"/>
                <add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
                <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
                <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
                <remove verb="*" path="*.asmx"/>
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers>
            <httpModules>
                <add type="ComponentArt.Web.UI.UploadModule,ComponentArt.Web.UI" name="ComponentArtUploadModule"/>
                <add type="CompressWebResource" name="CompressWebResource"/>
                <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules>
            <authentication mode="Windows"/>
            <pages>
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages></system.web>
        <Miron.web>
            <CompressorSettings reflectionAlloweded="false" optimizeHtml="true" daysInCahe="30" compressCSS="true" compressJavaScript="true" compressPage="false" compressWebResource="false" compressThirdParityScripts="false">
                <excludeTypes>
                    <add key="image/gif"/>
                    <add key="image/jpeg"/>
                </excludeTypes>
                <excludePaths>
                    <!--<add key="~/DontCompressMe.aspx" />-->
                </excludePaths>
            </CompressorSettings>
        </Miron.web>
        <system.webServer>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated"/>
                <remove name="ScriptHandlerFactory"/>
                <remove name="ScriptHandlerFactoryAppServices"/>
                <remove name="ScriptResource"/><add name="JsHandler" verb="*" path="jslib.axd" type="Miron.Web.MbCompression.JavaScriptCompressionHandler, MbCompression" preCondition="integratedMode"/>
                <add name="CssHandler" verb="*" path="css.axd" type="Miron.Web.MbCompression.CssCompressionHandler, MbCompression" preCondition="integratedMode"/>
                <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
                <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
                <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></handlers>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                <remove name="ScriptModule"/>
                <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules></system.webServer>
        <runtime>
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                <dependentAssembly>
                    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
                </dependentAssembly>
                <dependentAssembly>
                    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
                </dependentAssembly>
            </assemblyBinding>
        </runtime>
        <system.codedom>
                <compilers>
                    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="WarnAsError" value="false"/></compiler>
                    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                        <providerOption name="CompilerVersion" value="v3.5"/>
                        <providerOption name="OptionInfer" value="true"/>
                        <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom></configuration>
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Dec 2011 Link to this post

    Hello,

    Try the following.
    JS:
    <script type="text/javascript">
      function open1()
      {
        var oWnd = window.radopen("AddNewDocument.aspx", "RadWindow1");   
      }
    </script>

    Also make sure you have RadWindowManager on page.

    Thanks,
    Princy.
Back to Top