New RadWindow open

4 posts, 2 answers
  1. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 18 May 2009 Link to this post

    Hi

    I am having a RadWindow (say it's opened as http://yahoo.com), on click of reload button at top of radwindow I want to open a new rad window, with another link say (http://www.google.com).

    Is it possible. Replies will be apprecoated

    Thanks in Advance

    Arindam
  2. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 18 May 2009 Link to this post

    Hi Arindam,

    You could use the OnClientCommand eventhandler for that purpose:
    function OnClientCommand(sender, eventArgs) 
        if(eventArgs.get_commandName() == "Reload"
        { 
            //cancel the reload 
            eventArgs.set_cancel(true); 
            //set the new Url 
            sender.setUrl("http://www.google.com"); 
        } 
         



    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 May 2009 Link to this post

    Hi Arindam,

    You can try out the following code if you want to open a new RadWindow on clicking the Reload button of a window.

    ASPX:
     
    <input id="Button1" type="button" value="button" />         
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        <Windows> 
            <telerik:RadWindow runat="server" OnClientCommand="OnClientCommand" Behavior="Default" OpenerElementID="Button1" InitialBehavior="None" Left="" 
                NavigateUrl="http://www.yahoo.com"
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 

    JavaScript:
     
    <script type="text/javascript"
    function OnClientCommand(sender, eventArgs) 
       if(eventArgs.get_commandName()== 'Reload'); 
       var oWnd  = radopen ("http://www.google.com"null); 
    </script> 

    Thanks,
    Shinu.
  4. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 18 May 2009 Link to this post

    Thanks a lot for your replies..... I really appreciate
Back to Top