How can I close RadAjaxLoadingPanel from code behind ?

3 posts, 0 answers
  1. Scott
    Scott avatar
    18 posts
    Member since:
    Oct 2011

    Posted 20 Feb 2012 Link to this post

    Hi, I have a RadAjaxLoadingPanel which automatically fires when my radgrid needs a data source. Great.
    However, in my NeedDataSource event, I have a condition set to tell the code that it might not need to rebind.

    If multiviewContacts.GetActiveView.ID = "viewContactSelect" Then
         'Bind the radgrid
        'Don't bother binding
    end if

    When my code doesn't need to rebind, the Loading Panel remains on the screen.

    Surely, there must be a simple way of removing the loading panel from server side, code-behind.  I just can't find it !

    I've looked at the demo but I don't want to have to add 25 more lines of javascript to my page just to hide the loading panel.

    ...and even then - I have the issue of calling that javascript from the code behind.

  2. Scott
    Scott avatar
    18 posts
    Member since:
    Oct 2011

    Posted 22 Feb 2012 Link to this post

    Bumpy bumpy !

    I'd really appreciate an admin's input on this if possible.

  3. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 23 Feb 2012 Link to this post

    Hi Scott,

    Note that the appearance and hiding of the loading panel is handled entirely on the client. It would not hide only in case the request that it was shown for did not end successfully. Therefore, my advice is to check in Firebug or IE Developer toolbar whether the request to the server ends successfully and also if there are any client-side errors.
    In a correctly working scenario there would be no need to explicitly hide the loading panel if it was shown by an ajax setting.

    the Telerik team
    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 their blog feed now.
Back to Top