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

centralizing loading sign

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nazim
Top achievements
Rank 1
Nazim asked on 17 Jul 2011, 12:09 PM
Hi,
I have a page consists of two grids. The bigger one is located in the center of screen, the other is smaller one which is placed at the rigth top corner. I have a template column including a button in bigger and centered grid. When it clicked some ajax code is executed. If I define
ajax setting as follows both of the grids are refreshing. But I only need smaller one to be refreshed.  If I remove the the bigger one's config item from UpdatedControls  section "Loading" sign is seems in the center of smaller grid. But I want the sign to be in the center og bigger grid. How can I do it? Refreshing two grids causes performance problem even there is no need.
Thank you,

<telerik:RadAjaxManager ID="ram" runat="server" OnAjaxRequest="ram_AjaxRequest">
....
<telerik:AjaxSetting AjaxControlID="bigger...">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="smaller..." LoadingPanelID="rLoadPanelMain" />
                    <telerik:AjaxUpdatedControl ControlID="bigger..." LoadingPanelID="rLoadPanelMain" />
                </UpdatedControls>
</telerik:AjaxSetting>    
....

<telerik:RadAjaxLoadingPanel ID="rLoadPanelMain" runat="server" Skin="Mar" EnableEmbeddedSkins="false" ></telerik:RadAjaxLoadingPanel>

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jul 2011, 05:57 AM
Hello Nazim,

Please take a look at the following documentation for achieving your scenario.

Show the loading panel next to AJAX initiator.
Center the loading panel on the screen.

Thanks,
Shinu.
0
Nazim
Top achievements
Rank 1
answered on 19 Jul 2011, 07:14 AM
Thank you very much Shinu.,
I have implemented your solution and the loading panel is next to the ajax initiator.  But I had to put asp panel which contains button, ajax initiator, in the ajax settings section. Otherwise RequestStart event didn't fired. I think even there is no any effect of ajax call's result on this asp panel it is beiing refreshed in every ajax call. In real scenario I am using rad list view and template which includes a button as ajax initiator. Because for each record this button gets a different client id I cann't use the name of this button in  the ajax settings instead of asp panel.
Thanks,



Tags
Grid
Asked by
Nazim
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Nazim
Top achievements
Rank 1
Share this question
or