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

RadWindow Navigate value from javascript

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
sathies
Top achievements
Rank 1
sathies asked on 21 Jan 2009, 09:43 PM
Hi,

Please help me..
I have created one rad window dynamically. then i need to set the value of Navigate Property of this window from the javascript. but i could not set the Navigate Property value from javscript.
regard
Sathies

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jan 2009, 06:19 AM
Hi Sathies,

Try the following code for setting the NavigateUrl from client side for dynamically created RadWindow.

JavaScript:
<script type="text/javascript"
function seturl() 
    var oManager = GetRadWindowManager(); 
    var oWnd = oManager.getWindowByName("newwindow"); 
    oWnd.setUrl( "Dialog_window.aspx"); 
</script> 

CS:
protected void Page_Load(object sender, EventArgs e) 
    Telerik.Web.UI.RadWindow newWindow = new Telerik.Web.UI.RadWindow(); 
    newWindow.ID = "newwindow"
    newWindow.VisibleOnPageLoad = true
    RadWindowManager1.Windows.Add(newWindow); 

Thanks,
Shinu.
Tags
Window
Asked by
sathies
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or