This is a migrated thread and some comments may be shown as answers.

AjaxLoading panel not displaying

3 Answers 40 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
sweta
Top achievements
Rank 1
sweta asked on 08 Oct 2010, 11:13 AM

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

 

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 08 Oct 2010, 01:03 PM
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.
0
sweta
Top achievements
Rank 1
answered on 08 Oct 2010, 01:30 PM

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>

0
Tsvetina
Telerik team
answered on 13 Oct 2010, 03:01 PM
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
Tags
Ajax
Asked by
sweta
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
sweta
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or