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

Expanding treeNode having large text

2 Answers 26 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Girish
Top achievements
Rank 1
Girish asked on 22 Jun 2012, 11:14 AM
I have a telerik treenode which has a text containing more than 100K characters. Initially the nodes parent is collapsed and so the whole text of the child node is hidden. Now when i expand the parent node to view the child node, the browser stops responding and there is nothing else that i can do on the page.

How can i expand the node without crashing the browser?


Thanks & Regards,
Girish

2 Answers, 1 is accepted

Sort by
0
Girish
Top achievements
Rank 1
answered on 25 Jun 2012, 04:39 AM
2 days and no response! Iam surprised that nobody has a solution for this problem.
0
Plamen
Telerik team
answered on 25 Jun 2012, 12:06 PM
Hi Girish,

 
I have tried to reproduce the issue by adding sub node with 100 000 characters on a button click to the RadTreeView but could not observe the same behavior in neither browser. Here is the code behind that I used:

protected void button_Click(object sender, EventArgs e)
    {
        RadTreeNode rtn=new RadTreeNode();
         StringBuilder sb = new StringBuilder(200000);
        for (int i = 0; i < 100000; i++)
            {
             sb.Append('a');
            }
        rtn.Text=sb.ToString();
        tree.Nodes[0].Nodes.Add(rtn);
 
    }

Would you please share the exact code that you use with RadTreeView and the exact browser in which this issue is observed so we can be able to reproduce it locally?

Regards,
Plamen Zdravkov
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
TreeView
Asked by
Girish
Top achievements
Rank 1
Answers by
Girish
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or