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

[Solved] How can i get the Loading Panel to display in the cell that is been clicked?

3 Answers 225 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Temp
Top achievements
Rank 1
Temp asked on 25 Jun 2008, 05:32 AM
Hi I have a RadGrid with a custom ItemTemplate and Edit Template in a GridTemplateColumn, and a GridEditCommandColumn next to this with the edit command in it, and it changes to the save/cancel buttons as the form is edited inline.

My Grid is quite long vertically due to the nature of the data, so when I click edit towards the bottom of the page you can't see the loading panel as it is at the top of the grid. How can I get my Loading Panel to display inside the grid row that is being switched to edit mode and back, instead of at the top of the grid?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Jun 2008, 05:51 AM
Hi Temp,

Go through the following forum links.

Show the loading panel next to AJAX initiator
Center LoadingPanel on the Screen

Princy.
0
Temp
Top achievements
Rank 1
answered on 25 Jun 2008, 06:06 AM

Thanks Princy that's pretty much what I'm after. I'm using a Master Page though so I think maybe that's causing it problems?

My LoadingPanel is called LoadingPanel1, but when i try 
var divElementStyle = document.getElementById("LoadingPanel1").style; 

It fails, I have to try 

var
divElementStyle = document.getElementById("ctl00_ContentMain_LoadingPanel1").style;

Then when I do the positioning it still always seems to appear at the top of the screen, perhaps where the content pain is from the looks of it.

Do you know what else I could perhaps try?


0
Nikolay Rusev
Telerik team
answered on 27 Jun 2008, 03:17 PM
Hello Temp,

Thank you for getting back to us. Instead of using
var divElementStyle = document.getElementById("LoadingPanel1").style;   
 
OR  
 
var divElementStyle = document.getElementById("ctl00_ContentMain_LoadingPanel1").style;   
 

you can try with
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" > 
 <script type="text/javascript">  
  var divElementStyle = $get("<%=LoadingPanel1.ClientID%>");  
  // -- center loading panel --  
 </script> 
</telerik:RadCodeBlock> 
 
then you will have always reference to that loading panel. Please, give this suggestion a try and let me know how it goes and if any other questions arise.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Temp
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Temp
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or