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

[Solved] How to show RadAjaxLoadingPanel on tree OnLoad event

2 Answers 168 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
relper
Top achievements
Rank 1
relper asked on 30 Jan 2008, 08:11 PM
When my page loads I don't have any nodes loaded on a radtreeview control. I want to load them from client-side script during the page load. Meanwhile the tree is loading, I want to display an ajax loading panel. How can I do that? Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 01 Feb 2008, 02:05 PM
Hello,

You can use the hide() and show() client-side methods of the loading panel to hide/show it programmatically. Here is a code snippet:

var loadingPanel = $find("<%= RadLoadingPanel1.ClientID %>");
loadingPanel.show("<%= RadTreeView1.ClientID %>");

Both hide and show methods accept a single argument - the ClientID of the updated control.

Regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
relper
Top achievements
Rank 1
answered on 01 Feb 2008, 05:47 PM
Got it working. Thanks a lot Steve!
Tags
TreeView
Asked by
relper
Top achievements
Rank 1
Answers by
Steve
Telerik team
relper
Top achievements
Rank 1
Share this question
or