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

RadSplitter with 2 panes - 2 different pages

1 Answer 50 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
kachy
Top achievements
Rank 1
kachy asked on 06 Jan 2010, 08:54 PM
I have a page with RadSplitter with 2 RadPanes. I am setting the contenturl of those 2 radpanes on onload of the radPane holder page .

There are several buttons on the second page, can I reload the content of first RadPane when I click on any button the second RadPane page.

The code for the page which holds RadSplitter is ;

<div> 
 
<telerik:RadSplitter id="RadSplitter1" runat="server" height="510" width="930"   
 
Orientation="Horizontal">  
 
<telerik:RadPane id="RadPane1" runat="server"   
 
> </telerik:RadPane> 
 
<telerik:RadSplitBar id="RadSplitbar1" runat="server" collapsemode="Forward"></telerik:RadSplitBar> 
 
<telerik:RadPane id="RadPane2" runat="server"   
 
height="195" ></telerik:RadPane> 
 
</telerik:RadSplitter> 
 
</div> 
 
 
PageLoad of RadSplitter page is:
protected void Page_Load(object sender, EventArgs e)  
        {  
            string webpage1 = "";  
            webpage1 = "WebForm1.aspx?guid=" + Request.QueryString["stguid"].ToString() ;              
            string webpage2 = "";  
            webpage2 = "WebForm2.aspx?guid=" + Request.QueryString["guid"].ToString() ;            
            RadPane1.ContentUrl = webpage1;  
            RadPane2.ContentUrl = webpage2;  
        } 

My question is : Can I reload the contenturl of RadPane1 from a button click on page WebForm2.aspx?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 07 Jan 2010, 09:33 AM
Hello kachy,
You can do this with javascript - first you have to reference the parent page (the one holding the splitter) from the WebForm2, then get a reference to RadPane1 and use its client-side API to open the new page in that pane. Please refer to the following links for additional information:

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Splitter
Asked by
kachy
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or