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

LoadingPanel not displaying for RadGrid

2 Answers 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danielle
Top achievements
Rank 1
Danielle asked on 04 Feb 2009, 06:19 AM
Hi There,

My RadAjaxLoadingPanel doesn't seem to be displaying when the radgrid loads up for the first time a page is visited. I have tried

<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

<

AjaxSettings>

 

<telerik:AjaxSetting AjaxControlID="PlanRadGrid">  
<UpdatedControls> 
<telerik:AjaxUpdatedControl ControlID="PlanRadGrid" LoadingPanelID="RadAjaxLoadingPanel1" /> 
</UpdatedControls> 
</telerik:AjaxSetting> 

</

AjaxSettings>

 

</

telerik:RadAjaxManager>

 


as well as  encapsulting my radgrid within an ajax-enabled panel (see below)

<telerik:RadAjaxPanel runat="Server" EnableAJAX="True" LoadingPanelID="RadAjaxLoadingPanel1">   
   
        <table id="Table1" runat="server" style="width:2000px; text-align:left">  
            <tr> 
                <td>                
                  
                    <telerik:radgrid        id="PlanRadGrid"   
                                            AllowFilteringByColumn="True"   
                                            AllowSorting="True"   
                                            AutoGenerateColumns="False"   
etc etc 


as well as following the example http://www.telerik.com/help/aspnet-ajax/ajxshowloadingpaneloninitialpageload.html (which is not what I want and it doesn't quite work because the loading panel is displayed AFTER my grid displays!)

Applying the filter/sorting etc correctly displays the loading panel when the grid is rebuilt however I don't know why it isn't being displayed when the grid is built when a user first visits the page.

Thanks for your help,
Danielle

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 06 Feb 2009, 06:55 PM
Hi Danielle,

I am sending you a runnable application, which handles the desired functionality.
Give it a try and let me know if you have further questions.

Greetings,
Pavlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Danielle
Top achievements
Rank 1
answered on 09 Feb 2009, 12:48 AM
Hi Pavlina,

Thanks for the sample - it worked! Turns out that I needed to set the mastertableview's visible property to false initially and remove the Thread.Sleep() and the timer value from the $find function in javascript.

Thanks again Pavlina.

Regards,
Danielle
Tags
Grid
Asked by
Danielle
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Danielle
Top achievements
Rank 1
Share this question
or