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

Showing RadWindow in Javascript function

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shruthi N
Top achievements
Rank 1
Shruthi N asked on 12 May 2010, 11:25 AM
Hi,

I have a RadWindow in my page and I am trying to show this RadWindow in a javascript function. This javascript function is on click on a html button click.

I have the following code written for RadWindow:

<

 

telerik:RadWindowManager ID="rwmMyWindow" runat="server" />

<

 

telerik:RadWindow ID="rwUploadConfirmation" runat="server" Modal="True" Width="700" Height="400" KeepInScreenBounds="True" Overlay="True" VisibleStatusbar="false" VisibleTitlebar="false" Visible="false" >

 

 

<ContentTemplate>

 

 

   <asp:Label ID="lblUploadStatusMessage" runat="server" Font-Size="12px" ForeColor="Black" Font-Bold="true" />

 

  <

 

input type= button ID="SaveMsg_OK" value="Continue" style="width:75px" onclick="javascript:close_uploadWindow_dlg();" />

 

 

 

</ContentTemplate>

 

</

 

telerik:RadWindow>

 

In a javascript function, I need to show this RadWindow, assign some data to the label that I have inside this.

Would like to know how do I get this done.

Thanks in advance.

Shruthi

 

1 Answer, 1 is accepted

Sort by
0
Bob van der Zinch
Top achievements
Rank 2
answered on 12 May 2010, 11:53 AM
Hi,

You can use the following javascript code to get a reference to the javascript Window object

var win = $find ("<%= rwUploadConfirmation.ClientID %>"); 
and then you can show it

win.show(); 

or set any of its properties, as listed here

You can also check out RadWindow client-side demo
Tags
Window
Asked by
Shruthi N
Top achievements
Rank 1
Answers by
Bob van der Zinch
Top achievements
Rank 2
Share this question
or