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

Update the content of RadSplitter Pane

4 Answers 127 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
kachy
Top achievements
Rank 1
kachy asked on 03 Mar 2010, 07:44 PM
Hi,

In my project, when I upload file using SoftArtisan FileUp component, for the Transfer Progress Window, I am using a RadWindow and update the content of that RadWindow using
 transferwindow.get_contentFrame().contentWindow.document.write(strHTML);
strHTMl is the string to be written to RadWindow including the
<HTML><HEAD><TITLE>" + "Transfer Status" + "</TITLE> and other content needed for  HTML page.

I have a requirement where I have to open another page parallel to this transfer window. Can I open my tranfer window in RadPane inside the RadSplitter , where I can open my second page in the second RadPane. Can I update the content of the RadPane dynamically passing the string to the page?

Thanks.

4 Answers, 1 is accepted

Sort by
0
kachy
Top achievements
Rank 1
answered on 04 Mar 2010, 02:26 PM
Hi,

I think my basic question is, if I open a Radwindow which will have a page with RadSplitter, can I get a reference to the RadPane in that page from Parent Window. Currently, I open a RadWindow to show the tranfer status, in an event

TransferProgressEventHandler, I just check the RadWindow and update the content using this code:

 

transferwindow.get_contentFrame().contentWindow.document.write(

"");

 

transferwindow.get_contentFrame().contentWindow.document.close();

transferwindow.get_contentFrame().contentWindow.document.write(strHTML);
So, if I can get the reference of the RadPane inside the RadWindow from the parent page, I will be able to do the same thing.

Thanks.

0
Ron
Top achievements
Rank 2
answered on 04 Mar 2010, 10:30 PM
Thanks that worked out for me.

EDIT: Sorry this was posted to the wrong question by accident.
0
Accepted
Tsvetie
Telerik team
answered on 09 Mar 2010, 02:46 PM
Hi kachy,
Yes, you can get a reference to the RadPane client object that is in the child page of the RadWindow control. In order to do this, you should define a function that returns a reference to the pane object on the page, opened in the window and then call it from the parent page the following way:
var contentFrame = $find("<%= RadWindow1.ClientID %>").get_contentFrame();
var pane = contentFrame.contentWindow.GetRadPane();
alert(pane.get_id());

I have attached two simple pages that demonstrate the approach.

Best wishes,
Tsvetie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
kachy
Top achievements
Rank 1
answered on 10 Mar 2010, 10:16 PM
Thanks, it worked. I am going to use
pane.set_content(htmlString) to update the content after getting the handle of the RadPane.

Thanks
Tags
Splitter
Asked by
kachy
Top achievements
Rank 1
Answers by
kachy
Top achievements
Rank 1
Ron
Top achievements
Rank 2
Tsvetie
Telerik team
Share this question
or