All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Window
/
New RadWindow open
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
4 posts, 2 answers
Arindam
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
Answer
Georgi Tunev
Admin
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.
Answer
Shinu
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.
Arindam
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
Close