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

Loading Panel only showing once

3 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angie
Top achievements
Rank 1
Angie asked on 08 Apr 2011, 06:39 PM
Hi.  I've got a RadGrid with multiple pages.  The loading panel shows the first time I perform an action (sorting, searching, changing page, etc), but does not show on subsequent page changes or searches.    Any suggestions would be appreciated.  Thanks!

<telerik:RadAjaxManager EnableAJAX="true" ID="RadAjaxManagerOnlineCE" runat="server">  
    <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="RadGridCE">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE"  LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnSearchCECourses">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnViewAllCECourses">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                    <telerik:AjaxUpdatedControl ControlID="pSearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnSort">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
    </AjaxSettings>
</telerik:RadAjaxManager>
  
  
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelCESearch" runat="server" Height="75px" Width="75px" Transparency="50" InitialDelayTime="0" >
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'  style="border: 0px;" />
 </telerik:RadAjaxLoadingPanel>

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 11 Apr 2011, 12:23 PM
Hello Angie,

I am sending you a simple working project that is working as expected. Please give it a try and see if it works for you or if I am leaving something out.

I hope this helps.

Greetings,
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
0
Jayesh Goyani
Top achievements
Rank 2
answered on 11 Apr 2011, 12:47 PM
Hi Angie,

i also got the same issue in past and i solved this issue by adding RequestQueueSize="50" in Ajaxmanager.

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" RequestQueueSize="50">

Thanks,
Jayesh Goyani
0
Daniel Domer
Top achievements
Rank 1
answered on 01 Apr 2013, 03:53 PM
I was having this same issue. If this happens to you, check for any Javascript errors. I was getting a DOMException from one of Telerik's js files after the second page of data loaded. It does some magic handling of inline styles in the page. I had a temporary inline style with a media query:
@media (max-width: 980px) {
    /* Enable use of floated navbar text */
    .navbar-text.pull-right {
        float: none;
        padding-left: 5px;
        padding-right: 5px;
    }
}

After the first paging request (to fetch page 2) Telerik's Javascript was throwing a syntax error trying to handle this, on I believe an insertRule function in Javascript. Anyway it was some obfuscated JS. 

I had to move this media query to a separate .js file (not as a <style> in the page) and it now works.
Tags
Grid
Asked by
Angie
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Daniel Domer
Top achievements
Rank 1
Share this question
or