RadSplitter with 2 panes - 2 different pages

2 posts, 1 answers
  1. kachy
    kachy avatar
    89 posts
    Member since:
    Aug 2005

    Posted 06 Jan 2010 Link to this post

    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 ;

    <telerik:RadSplitter id="RadSplitter1" runat="server" height="510" width="930"   
    <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> 
    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?

  2. Answer
    Tsvetie avatar
    1517 posts

    Posted 07 Jan 2010 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top