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

New RadWindow open

3 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Arindam
Top achievements
Rank 1
Arindam asked on 18 May 2009, 11:28 AM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 18 May 2009, 12:20 PM
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.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 May 2009, 12:33 PM
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.
0
Arindam
Top achievements
Rank 1
answered on 18 May 2009, 12:58 PM
Thanks a lot for your replies..... I really appreciate
Tags
Window
Asked by
Arindam
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Shinu
Top achievements
Rank 2
Arindam
Top achievements
Rank 1
Share this question
or