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

Update right pane from content of Left pane

3 Answers 37 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 29 May 2012, 06:42 PM
Hi I have a radsplitter declared as follows.
<telerik:RadSplitter ID="RdSplt" runat="server" Height="100%" Width="100%" Skin="Windows7">
                        <telerik:RadPane runat="server" ID="rdPnlIzq" Width="30%" ContentUrl="iuMenuProyectos.aspx">
                           
                        </telerik:RadPane>
                     
                        <telerik:RadPane runat="server" ID="rdPnlDer" Width="70%"
                           >
                            Right Pane
                        </telerik:RadPane >
                    </telerik:RadSplitter>

As you can see the rdPnIZq content is loaded from a different page which contains a radTreeView binded on page load as follows.

protected void Page_Load(object sender, EventArgs e)
       {
           cCatalogo oCatalogo=new cCatalogo();
           var ejes = oCatalogo.obtCatEjes();
           
 
           if (!IsPostBack)
           {
               var treeNodeReforma = new RadTreeNode("REFORMAS");
               RadTreeView1.Nodes.Add(treeNodeReforma);
               var reformas = oCatalogo.obtCTReforma();
               foreach (var ctReforma in reformas)
               {
 
                   treeNodeReforma.Nodes.Add(new RadTreeNode(ctReforma.fcDescRef));
                   foreach (RadTreeNode reforma in treeNodeReforma.Nodes)
                   {
                       var radtreenodeEje = new RadTreeNode("EJES");
 
                       reforma.Nodes.Add(radtreenodeEje);
                       foreach (var eje in ejes)
                       {
                           var ej = new RadTreeNode(eje.fcEje);
                           radtreenodeEje.Nodes.Add(ej);
                           ej.Nodes.Add(new RadTreeNode("PROYECTOS ESTRATÉGICOS"));
 
                           foreach (RadTreeNode ctproyEst in ej.Nodes)
                           {
                     
                               var s = oCatalogo.obtCatPE(ctReforma.fiIdReforma, eje.fiIdEje);
                                foreach (var proyEstrategico in s)
                                {
                                    var treeNodePE = new RadTreeNode(proyEstrategico.fcDescPE);
                                    ctproyEst.Nodes.Add(treeNodePE);
                                }
 
                           }
 
 
 
                           //foreach (RadTreeNode rdtnEje in ej.Nodes)
                           //{
                           //    var radtreenodePE = new RadTreeNode("PROYECTOS ESTRATÉGICOS");
 
                           //    rdtnEje.Nodes.Add(radtreenodePE);
 
                           //    var s = oCatalogo.obtCatPE(ctReforma.fiIdReforma, eje.fiIdEje);
                           //    foreach (var proyEstrategico in s)
                           //    {
                           //        var treeNodePE = new RadTreeNode(proyEstrategico.fcDescPE);
                           //        radtreenodePE.Nodes.Add(treeNodePE);
                           //    }
 
                           //}
                           
 
                       }
                       
                   }
               }
           }
       }

This page is loaded on the leftpane without problems.
But what I want to do is depending on the tree node I hit, load on the right panel a web page with information related to that node.

I tried the example attached to this KB
http://www.telerik.com/support/kb/aspnet-ajax/splitter/use-ajax-request-to-update-part-of-an-external-page-loaded-in-a-radpane.aspx

But in this example the button on the leftpane is placed within the pane itself no from another page like my treeview.

How can I achieve this with the leftpane content loaded from another page?

Hope your help.

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 30 May 2012, 07:18 AM
Hello,

Please take a look at the following KB article, I believe it will help you solve this case:
Referencing content page in a splitter pane from the parent page and vice versa

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Cristian
Top achievements
Rank 1
answered on 30 May 2012, 03:08 PM
Hi Dobromir just one question. Is it posible to do this in code behind
0
Dobromir
Telerik team
answered on 31 May 2012, 06:49 AM
Hi Cristian,

In short, no it is not possible to access the content of an <iframe> from the parent page's code behind or vise versa.

Kind regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Splitter
Asked by
Cristian
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Cristian
Top achievements
Rank 1
Share this question
or