Show loader when using server side load on demand

2 posts, 0 answers
  1. Natan
    Natan avatar
    6 posts
    Member since:
    Sep 2013

    Posted 17 Oct 2013 Link to this post

    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?

  2. Bozhidar
    Bozhidar avatar
    1146 posts

    Posted 22 Oct 2013 Link to this post

    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.

    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.
Back to Top