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

Open same window from multiple elements

2 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 13 Aug 2008, 10:27 AM
Hi,

Is it possible to open the same RadWindow from multiple elements on the page?  Currently I can only set one element to cause the window to open by setting the OpenerElementID.

Thanks,

Jeff

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 13 Aug 2008, 11:48 AM
Hi Jeff,

I am not sure what exactly is your scenario, but in general you can open RadWindow by usings its client-side API (radopen(), show()) or its server-side one (VisibleOnPageLoad=true).
More information on the subject is available in the control's documentation, section Controls / Window / Programming.



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Roderick Prince
Top achievements
Rank 1
answered on 02 Feb 2009, 06:21 PM
Consider making a button responsible for being the opener element and then using script to click the button wherever you need it...

 

<telerik:RadWindow runat="server" id="wndContact" reloadonshow="true" navigateurl="~/popup/contact_sel.aspx" clientcallbackfunction="wndContactCallback" openerelementid="<%# btnContact.ClientID %>" width="600" height="400" title="Engineer Selection"></telerik:RadWindow>

 

 

function ShowContact() {

 

$get(

"<%=btnContact.ClientID %>").click();

 

}

Tags
Window
Asked by
Jeff
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Roderick Prince
Top achievements
Rank 1
Share this question
or