Update right pane from content of Left pane

4 posts, 0 answers
  1. Cristian
    Cristian  avatar
    46 posts
    Member since:
    May 2011

    Posted 29 May 2012 Link to this post

    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.
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 30 May 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cristian
    Cristian  avatar
    46 posts
    Member since:
    May 2011

    Posted 30 May 2012 Link to this post

    Hi Dobromir just one question. Is it posible to do this in code behind
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 31 May 2012 Link to this post

    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.
Back to Top