RadajaxLoadingPanel show not working

3 posts, 1 answers
  1. Lynne
    Lynne avatar
    13 posts
    Member since:
    Apr 2008

    Posted 27 Sep 2010 Link to this post

    I try to show and hide the radAjaxLoadingPanel, but it is not working.  I don't know what is missing.  I have a loading panel:

     

     

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

     

     

     

    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator>

     

     

     

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>

     

     


     

     

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd">

     


     

     

    function OnRequestStart(sender, arguments) {

     

     

     

    var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

     

    currentLoadingPanel.show(

     

    '<%=PageForm.ClientID %>');

     

    }

     

     

    function OnResponseEnd(sender, arguments) {

     

     

     

    var currentLoadingPanel = window['<%=RadAjaxLoadingPanel1.ClientID %>'];

     

    currentLoadingPanel.hide(

     

    '<%=PageForm.ClientID %>');

     

    }


    In IE I get an error that show won't work:
    'Microsoft JScript runtime error: Object doesn't support this property or method'

    In FF I get an error that  currentLoadingPanel is undefined.  Both have a problem at the line for currentLoadingPanel.show().

    Others have this website in TFS and we have all downloaded the files, but mine is not working and other people seem to have no problem.
    What am I missing?

    This problem occurs when filtering or sorting a RadGrid.

    Thanks!


  2. Answer
    Dimo
    Admin
    Dimo avatar
    8472 posts

    Posted 28 Sep 2010 Link to this post

    Hello Lynne,

    You should not use window[...] to obtain reference to a RadControls for ASP.NET AJAX client object - this was used with the old ASP.NET controls. Use $find(...) instead.

    http://www.telerik.com/help/aspnet-ajax/ajxshowhideloadingpanel.html

    Greetings,
    Dimo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Lynne
    Lynne avatar
    13 posts
    Member since:
    Apr 2008

    Posted 28 Sep 2010 Link to this post

    That works!  Thanks.
Back to Top