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

how to get the radTreeView's link-content screen in the radPane?

2 Answers 76 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
xiaolin
Top achievements
Rank 1
xiaolin asked on 07 Nov 2008, 02:34 AM

My splitter.aspx code :

<telerik:radsplitter id="RadSplitter1" runat="server" height="100%" width="100%" Orientation="Horizontal" Skin="Default2006">     
            <telerik:radpane id="panel_header" runat="server" Height="68" MaxHeight="68" MinHeight="68">header</telerik:radpane>    
            <telerik:radsplitbar id="RadSplitbar1" runat="server" CollapseMode="Forward" />    
            <telerik:radpane id="contentPane" runat="server" Scrolling="None">     
                <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" width="100%" Skin="Default2006">     
                    <telerik:radpane id="panel_menu" runat="server" width="250" ContentUrl="treeview.aspx"></telerik:radpane>    
                    <telerik:radsplitbar id="RadSplitbar2" runat="server" CollapseMode="Forward" />    
                    <telerik:radpane id="panellist" runat="server"></telerik:radpane>    
                </telerik:radsplitter>    
            </telerik:radpane>    
        </telerik:radsplitter>   

this is my treeview.aspx:
<script type="text/javascript">  
      function ClientNodeClicked(sender, eventArgs)  
        {  
            var treeNode = eventArgs.get_node();  
            var nodeValue = treeNode.get_text()  
 
            if (nodeValue == "Root")  
            {  
                window.open("content1.aspx""panellist");  
            }  
            else if (nodeValue.substring(0, 4) == "node")  
            {  
                nodeValue = nodeValue.substr(1, nodeValue.length - 1);  
                window.open("content2.aspx""panellist");  
            }  
        }  
    </script>  
 
 
<telerik:RadTreeView ID="TreeView1" runat="server"  OnClientNodeClicked="ClientNodeClicked">  
        <Nodes>  
            <telerik:RadTreeNode Text="Root">  
                <Nodes>  
                    <telerik:RadTreeNode Text="node1" />  
                    <telerik:RadTreeNode Text="node2" />  
                </Nodes>  
            </telerik:RadTreeNode>  
   
        </Nodes>  
    </telerik:RadTreeView> 

when I click the node in the treeview, then screen a content in a pop page, how screen the content in the radpane(panellist) and not refresh all the page??
Thanks.

2 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 10 Nov 2008, 12:39 PM
Hi Xiaolin,
You need to set the ContentUrl of the panellist RadPane. For example:

<telerik:radsplitter id="RadSplitter1" runat="server" height="100%" width="100%" 
    orientation="Horizontal" skin="Default2006">        
    <telerik:radpane id="panel_header" runat="server" Height="68" MaxHeight="68" MinHeight="68">header</telerik:radpane>       
    <telerik:radsplitbar id="RadSplitbar1" runat="server" CollapseMode="Forward" />       
    <telerik:radpane id="contentPane" runat="server" Scrolling="None">        
        <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" width="100%" Skin="Default2006">        
            <telerik:radpane id="panel_menu" runat="server" width="250" ContentUrl="treeview.aspx"></telerik:radpane>       
            <telerik:radsplitbar id="RadSplitbar2" runat="server" CollapseMode="Forward" />       
            <telerik:radpane id="panellist" runat="server" ContentUrl="about:blank"></telerik:radpane>       
        </telerik:radsplitter>       
    </telerik:radpane>       
</telerik:radsplitter> 

That way you will force the RadPane to create an IFRAME in which you can open your pages.

Greetings,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
xiaolin
Top achievements
Rank 1
answered on 11 Nov 2008, 06:25 AM
Thank you, you give me a very good Solution!
Tags
Splitter
Asked by
xiaolin
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
xiaolin
Top achievements
Rank 1
Share this question
or