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

Tabstrib and Radpane

1 Answer 50 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jeff Wickersham
Top achievements
Rank 1
Jeff Wickersham asked on 07 Oct 2010, 02:33 AM
Looking for a way to open an external page in a particular RadPane from a Tab selection...Is it possible, is there a sample somewhere?

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Oct 2010, 08:17 AM
Hello Jeff,


In the 'OnClientTabSelected' event of the RadTabStrip, get reference to the iframe of the RadPane and set the new src as shown below

Client Code:
function changeUrl() {
    var splitter = $find("<%= RadSplitter1.ClientID %>");
    var pane = splitter.getPaneById("<%= ContentPane.ClientID %>");
    var iframe = pane.getExtContentElement();
    var contentWindow = iframe.contentWindow;
    iframe.src = "http://www.google.com";
}
 

Check the following help articles also:
Referencing the external content of a pane
External Content


-Shinu.
Tags
TabStrip
Asked by
Jeff Wickersham
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or