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

clearing URLContent in RadPane

1 Answer 50 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 13 Oct 2008, 09:37 PM
I have a process that runs for about 20 seconds. When the process is done a new webpage is created and ContentURL for a RadPane is updated to point to this new URL. The problem I am having is when I run this process a 2nd time the ContentURL is displayed from the previous time until the new ContentURL is updated... this takes 20 seconds.

Is there a way to clear the ContentURL setting when the user starts the process? I know this is an IFrame, so I thought about doing this with javascript.. but wasn't sure if this was a possibility.

Any help is appreciated Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 14 Oct 2008, 10:26 AM
Hi Jeff,

Yes, it is absolutely possible to use javascript to change the pane's ContentUrl - you can do this in the following manner:

 <script type="text/javascript">  
        function ChangeUrl()  
        {  
          var paneIframe = $find("<%=RadPane1.ClientID %>").getExtContentElement();  
          paneIframe.src = "http://www.telerik.com";  
        }  
        </script> 

The getExtContentElement is a RadPane's client-side method which returns the pane's IFRAME element. You can find it in our online documentation here.

Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
Jeff
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or