I'm using radgrid in my asp.net application. In button click i'm binding the grid with data. But its takes some times to bind data. So I want to show the load image till finish databinding. How to show the loding image while radgrid loding with data. Please help me.
Asked
Active
Viewed 1.1k times
2 Answers
1
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page,
"Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnRefresh">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlAlerts" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
-
hi thanks for reply. but I'm gettig floowing error Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'dispatcherGrdPnlPanel'. If it is being updated dynamically then it must be inside another UpdatePanel. – Ram Aug 02 '11 at 13:42
0
I think your code has the right idea to use RadAjaxManager to accomplish this. Is it safe to assume that your grid is found inside of pnlAlerts? If not, be sure to include your grid as an updated control. I also usually add a clause that the grid itself will trigger an ajax call (if for instance the user is filter, moving columns, etc). For example:
<telerik:AjaxSetting AjaxControlID="Grid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Grid1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>

Der Wolf
- 1,171
- 9
- 11