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

Show loader when using server side load on demand

1 Answer 312 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Natan
Top achievements
Rank 1
Natan asked on 17 Oct 2013, 08:44 AM
In your examples when using load on demand with web service
or client side code, there is a nice loader showing until the loading is completed.

However , when using server side load on demand there is no loader and the control is simply "stuck" until the data is retreved.

Is there any way to get the loader on server side load on demand?

Thanks,
Omer

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 22 Oct 2013, 06:59 AM
Hello Natan,

When you trigger a full postback on a page, the page stops being updated and until the refreshed page is received from the server, you have no control over it.

To achieve what you are looking for, there are two possible approaches:
1. Use ServerSideCallback mode instead of ServerSide. This way you are still using the same logic to bind the TreeView, with the added benefit of not having to postback the entire page, and the loading icon is showed by default.
2. Put the treeview inside a RadAjaxPanel with a designated RadAjaxLoadingPanel, which will show a loading screen while the postback is completed.
 

Regards,
Bozhidar
Telerik
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 the blog feed now.
Tags
TreeView
Asked by
Natan
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or