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

[Solved] RadAjaxLoadingPanel position not centered to RadGrid

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ingenix-Tech
Top achievements
Rank 1
Ingenix-Tech asked on 15 Aug 2013, 06:39 PM
I have  the radgrid reduced to width of 70% but when postback (like sorting, paging) the loadingpanel loads to 100% of the width which causes to overflow over the size of the RAdGrid (like shadowing outside the radgrid)
how to do I fix it.?

<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
   <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AllowPaging="True" PageSize="5" GridLines="Horizontal" HeaderStyle-Font-Bold="true">    
    <PagerStyle Mode="NextPrevAndNumeric" PageSizeControlType="RadComboBox"></PagerStyle>
   </telerik:RadGrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" BackgroundPosition="Center" Skin="Silk">
</telerik:RadAjaxLoadingPanel>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Aug 2013, 01:50 PM
Hi Pederla,

I guess you want the loading panel to take the size of radgrid.Please try setting the width to RadAjaxPanel rather than radgrid because the LoadingPanel resides inside the RadAjaxPanel.
Please try this code snippet.

ASPX:
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" Width="70%">
    <telerik:RadGrid ID="RadGrid1" runat="server" >
        <MasterTableView>
            <Columns>
             . . . . . . . . . . . . . .
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" BackgroundPosition="Center">
</telerik:RadAjaxLoadingPanel>

Thanks,
Princy
Tags
Grid
Asked by
Ingenix-Tech
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or