Hi I have a radsplitter declared as follows.
As you can see the rdPnIZq content is loaded from a different page which contains a radTreeView binded on page load as follows.
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.
<
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.