AjaxLoading panel not displaying

4 posts, 0 answers
  1. sweta
    sweta avatar
    21 posts
    Member since:
    Jun 2010

    Posted 08 Oct 2010 Link to this post

    Hello,

    I have one RadAjaxManager on my parent page.
    this page also contains the RadTabstrip Control. My Tabs are dynamically created according to my requirement. i have two modules.
    Suppose my Page is contact.aspx which is called by two hyperlinks. 1. my account 2. contact edit.
    when link1 My account is called at that time i do not want to load my 2nd Tab. i needed only 1st Tab.
    when link2 Contact edit is called at that time i want to display my both the tabs. i had a requirement that i have to use dynamic tab creation only.

    i have added Radajaxmanager settings like below.
    Radgrid1 is on my one module and Radgrid2 is on my 2nd module.
    When contact edit page called radgrid 1 and radgrid2 both are loaded and Ajax is working fine.
    But when my account page is displaying at that time only RadGrid1 is displaying. when i click on edit button of grid my dynamic template gets open with save and cancel button. click on any of these buttons Ajaxloading panel is not displaying. but if i comment the code below then it is working.

    <telerik:AjaxSetting AjaxControlID="RadGrid2"> 

     

     

    <UpdatedControls> 

     

     

    <telerik:AjaxUpdatedControl ControlID="RadGrid2" /> 

     

     

    </UpdatedControls> 

     

     

    </telerik:AjaxSetting>

     

     

     


    my contact page contains below radajax settings.

     

     

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

     

     

                <UpdatedControls>

     

     

                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="AjaxLoadingPanel1" />

     

                        <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="AjaxLoadingPanel1" />

                </UpdatedControls>

     

     

            </telerik:AjaxSetting>

     

     

    <telerik:AjaxSetting AjaxControlID="RadGrid1">

     

     

                <UpdatedControls>

     

     

                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />

     

     

                  </UpdatedControls>

     

     

    </telerik:AjaxSetting>

     

    <telerik:AjaxSetting AjaxControlID="RadGrid2"> 

     

     

            <UpdatedControls> 

     

     

                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" /> 

     

     

            </UpdatedControls> 

     

     

    </telerik:AjaxSetting>

     

    </AjaxSettings>

     

     

    </telerik:RadAjaxManager>

    Thanks
    Sweta

     

  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 08 Oct 2010 Link to this post

    Hello Sweta,

    Set the LoadingPanelID on your RadGrid settings. I only you doing that if the RadAjaxManager is initiating the ajax request, but not on the ones when the RadGrid is initiating the ajax request. So like this:

    <telerik:AjaxSetting AjaxControlID="RadGrid2">  
       <UpdatedControls>  
          <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="AjaxLoadingPanel1" />  
       </UpdatedControls>  
    </telerik:AjaxSetting

    I hope that helps.
  3. sweta
    sweta avatar
    21 posts
    Member since:
    Jun 2010

    Posted 08 Oct 2010 Link to this post


    I tried it. but it is also not working.

    my radgrid2 is not loaded as my account page do not required it. may be because of that my loading panel is not displaying.
    so when i comment this code it works properly.

    both my radgrid1 and radgrid2 loads according to the user permission. and they are in separate user controls. so it means my controls get loaded according to the permission.

    <telerik:AjaxSetting AjaxControlID="RadGrid2"> 

     

    <UpdatedControls>   

     

    <telerik:AjaxUpdatedControl ControlID="RadGrid2"  LoadingPanelID="AjaxLoadingPanel1"/>

     

    </UpdatedControls>
    </telerik:AjaxSetting>

  4. Tsvetina
    Admin
    Tsvetina avatar
    2481 posts

    Posted 13 Oct 2010 Link to this post

    Hello Sweta,

    Is it correct that both RadGrids are inside the TabStrip control? If this is so, my suggestion is to replace the separate AjaxSettings with:
    <AjaxSettings>
       <telerik:AjaxSetting AjaxControlID="RadTabStrip1"
           <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" LoadingPanelID="AjaxLoadingPanel1" /> 
           </UpdatedControls
       </telerik:AjaxSetting
    </AjaxSettings>


    All the best,
    Tsvetina
    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