[1.0] TreePanel - PageTreeLoader issue

  1. #1

    [1.0] TreePanel - PageTreeLoader issue

    Hi,

    I have this code:

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>TreePanel with Async TreeLoader using Page - Ext.NET Examples</title>
        
        <link href="../../../../resources/css/examples.css" rel="stylesheet" type="text/css" />
        
        <script runat="server">
            protected void NodeLoad(object sender, NodeLoadEventArgs e)
            {
                string prefix =  "";
    
                if (!string.IsNullOrEmpty(e.NodeID))
                {
                    for (int i = 1; i < 6; i++)
                    {
                        AsyncTreeNode asyncNode = new AsyncTreeNode();
                        asyncNode.Text = prefix + e.NodeID + i;
                        asyncNode.NodeID = e.NodeID + i;
                        e.Nodes.Add(asyncNode);
                    }
    
                    for (int i = 6; i < 11; i++)
                    {
                        Ext.Net.TreeNode treeNode = new Ext.Net.TreeNode();
                        treeNode.Text = prefix + e.NodeID + i;
                        treeNode.NodeID = e.NodeID + i;
                        treeNode.Leaf = true;
                        e.Nodes.Add(treeNode);
                    }
                }
            }
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            
            <h1>TreePanel using PageTreeLoader</h1> 
            
            
            <ext:TreePanel 
                ID="TreePanel1" 
                runat="server" 
                Title="Tree" 
                AutoHeight="true" 
                Border="false">
                <Loader>
                    <ext:PageTreeLoader OnNodeLoad="NodeLoad" />
                     
                </Loader>
                <Root>
                    <ext:AsyncTreeNode NodeID="0" Text="Root" />
                </Root>
            </ext:TreePanel>       
        </form>
    </body>
    </html>
    i Click the AsyncTreeNode ,but it's ChildNode can't expand,this Error occurs when i update from Svn,thanks.
    Last edited by geoffrey.mcgill; Oct 15, 2010 at 6:00 PM.
  2. #2
    Hi,

    Fixed
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. [CLOSED] TreePanel Issue
    By sailendra in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 03, 2012, 11:58 AM
  2. Replies: 0
    Last Post: Apr 18, 2012, 6:48 PM
  3. Replies: 4
    Last Post: Oct 11, 2010, 3:39 PM
  4. [CLOSED] [8.2] PageTreeLoader - error handling in OnNodeLoad
    By mrozik in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 13, 2010, 7:40 PM
  5. [CLOSED] Nodes Icons with PageTreeLoader
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 23, 2009, 2:10 PM

Tags for this Thread

Posting Permissions