RadAjaxLoadingPanel

4 posts, 0 answers
  1. Shamim
    Shamim avatar
    10 posts
    Member since:
    Jul 2010

    Posted 02 Sep 2010 Link to this post

    I have a radajaxloading panel as followed:

     

    <td runat="server" style="padding-bottom:15px; width:40px;">

     

     

     

    <asp:Panel ID="pnlHolder" runat="server" Visible="true" ></asp:Panel>

     

     

     

     

    <telerik:RadAjaxLoadingPanel id="LoadingPanel1" runat="server" Width="30px"

     

     

    Height="30px" IsSticky="false" >

     

     

     

    <asp:Image id="Image2" runat="server" ImageUrl="~/Image/ajax-loader.gif" />

     

     

     

    </telerik:RadAjaxLoadingPanel>

     

     

     

    </td>

     


    I have a click event that fires a javascript as followed based on a click event:

    <

     

    script type="text/javascript" language="javascript">

     

     

    var currentLoadingPanel = null;

     

     

    var currentUpdatedControl = null;

     

     

     

    function AjaxRequestStart() {

     

     

     

    if (document.getElementById("<%= hdnAvailabilityChecker.ClientID %>").value == 1) {

     

     

    return;

     

    }

     

     

    if (document.getElementById("<%= TextBox7.ClientID %>").value == "") {

     

     

    return;

     

    }

     

     

    document.getElementById(

    "<%= TextBox7.ClientID %>").value = document.getElementById("<%= TextBox7.ClientID %>").value.toUpperCase();

     

     

    currentLoadingPanel = $find(

    "<%= LoadingPanel1.ClientID %>");

     

     

    currentUpdatedControl =

    "<%=pnlHolder.ClientID %>";

     

     

    currentLoadingPanel.show(currentUpdatedControl);

     

    var t = setTimeout("AjaxResponseEnd()", 2000);

     

    }

     

     

    function AjaxResponseEnd() {

     

     

    if (currentLoadingPanel != null) {

     

    currentLoadingPanel.hide(currentUpdatedControl);

    document.getElementById(

    "<%= hdnAvailabilityChecker.ClientID %>").value = 1;

     

     

    }

     

     

    }


    The script works fine when we click the button for the first time. But on the second click it throws the following message:

    Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_MainContent_pnlHolderPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.

    Any help on this will be appreciated. Thanks.

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 03 Sep 2010 Link to this post

    Hi Shamim,

    Could you please confirm that pnlHolder is always visible or somewhere  you change its visibility. If so I suggest that you wrap pnlHolder in another panel which is always visible. This should eliminate the error.

    Kind regards,
    Pavlina
    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. Shamim
    Shamim avatar
    10 posts
    Member since:
    Jul 2010

    Posted 03 Sep 2010 Link to this post

    Please take a look at the code. The visibility property is already set to true.
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 03 Sep 2010 Link to this post

    Hello Shamim,

    Can you share a piece of runnable code which illustrates the issue you are facing? We will thus be able to further investigate it.

    All the best,
    Pavlina
    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
Back to Top