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

RadTreeView renders slowly

4 Answers 126 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Charles Forsyth
Top achievements
Rank 2
Charles Forsyth asked on 04 Sep 2008, 01:56 AM
Hi Gurus,

I've created a fairly simple Ajax web app using Visual Studio 2008 and RadControls for ASP.NET Ajax (latest version and service pack)

I added a web form to the application. I then dragged the ScriptManager and RadAjaxManager controls onto the page just under the <form> tag.

I added a RadAjaxLoadingPanel.

Then I dragged on a RadTreeView control.

I then dragged a LinkButton control onto the form.

Then I set up the RadAjaxManager so when the linkbutton was affected it would also affect the RadTreeView control.

I wrote code in code-behind that refreshes the RadTreeView control.

When the user clicks the linkbutton, the RadAjaxLoadingPanel shows the image, but it's not animated (giving a clue that IE7 has received the response from the server and is now working to render the page).

It seems like 3 or 4 seconds from the animated icon freezing to when IE7 actually displays the list of ~150 items.

However, when I run the very same code in Firefox or Safari, the RadTreeView renders very quickly.

I understand that IE7 is probably just plain slow. But is Telerik going to address this by using a different (more efficient) method for rendering the RadTreeView?

I'm afraid that I won't be able to use the RadTreeView control if it's always this slow.

Maybe I'm doing something wrong and it's not the control?

4 Answers, 1 is accepted

Sort by
0
Charles Forsyth
Top achievements
Rank 2
answered on 04 Sep 2008, 02:52 AM

Further information:

It seems that performance degrades almost exponentially if you use MasterPages on your site and you are using the Proxies for both ScriptManager and RadAjaxManager.

It was in a MasterPage Content page that I originally noticed the performance issue with IE7. Again, with Firefox and Safari there is hardly a noticable render time.

0
Veselin Vasilev
Telerik team
answered on 05 Sep 2008, 03:02 PM
Hello Charles Forsyth,

I tried to reproduce the problem, but to no avail. After clicking on the link button the 150 root nodes are added almost immediately. I could not even see the loading panel.

Please check my test page and let me know what is different in your case.

Greetings,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Thomas Scheelhardt
Top achievements
Rank 1
answered on 12 Sep 2008, 12:44 PM
Hi,

I am experiencing the exact same behavior although the circumstances are a bit different.
I am loading the tree on demand and it takes the tree 4-5 seconds to render ~100 items. I have timed the actual adding of new nodes in the NodeExpand handler, and it takes 1 ms!.

If I turn off dynamic loading, the tree renders in less than a second with the same amount of data.

I have also tried your example, and its true it does render faster, however so does my control if I put it on a blank page, but together with other controls inside an updatepanel it performs horribly.

Now one solution could be to simply not load on demand, however in my scenario the potential data hierarchy is huge so I need to be able to load on demand, but no user in the world will accept waiting 4-5 seconds each time a node is expanded.

The tree shipping with .Net does not have these issues, unfortunately it does not seems possible to use that embedded in the RadComboBox?

I sincerely hope there is a fix for this.

Brgds,
Thomas Scheelhardt
0
Veselin Vasilev
Telerik team
answered on 15 Sep 2008, 02:39 PM
Hi Thomas Scheelhardt,

If you have a lot of controls in an UpdatePanel then it is normal that the ajax calls are slow.
Have you tried using the RadAjaxManager?

You can also check this and this blog posts.

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Charles Forsyth
Top achievements
Rank 2
Answers by
Charles Forsyth
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Thomas Scheelhardt
Top achievements
Rank 1
Share this question
or