Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET treeview performance issue with IE7,8

I am using treeview in my asp.net application which have 2000 nodes in it. The treeview takes 40 sec to load on IE7,8 while same page takes 1/10th time on Firefox and chrome. Is there any solution to this problem. Tried searching for this but found only unanswered questions. If this is a limitation of IE 7,8 then what is the reason for it. Is it because of the rendering engine. Is there any solution to the problem ? I mean i tried using the jquery treeview but again it hangs the IE and alert popups up for slow script.

Please help.

like image 681
Ankit Avatar asked Jun 22 '11 05:06

Ankit


2 Answers

Have you tried this jQuery plugin? http://www.jstree.com/

It supports AJAX loading, which is great for a 2000 node tree.

like image 140
rkw Avatar answered Sep 28 '22 05:09

rkw


When you open the rendered html generated from the tree view, you will find that the control generate a hell of html table, tr and td which I think is taking a very long time to be rendered on IE so I suggest that you create a new custom web control that inhertis from the treeview control and update the "Render Method" to write Div's instead of HTML and this will require a professional developer and HTML designer to do this.

I think you can after that share this new control with the community and we can enhance on it with you to get rid of this dummy asp.net gridview.

like image 28
Samir Adel Avatar answered Sep 28 '22 05:09

Samir Adel