I have a RadGrid that is populated when the NeedDataSource event occurs which is normally at initial page load. How can I get the AJAXLoadingPanel to start when the page is initially loaded. I seen the code at
http://www.telerik.com/community/forums/new-thread.aspx?forumId=186
But the javascript gives me an error that the "Object does not support this property or method" ( this is on IE6). I am not using an ASP:Panel just the AJAXLoadingPanel which I am setting the visible property to true.
Can this not work without an ASP:Panel.
Can a RadGrid initiate an AJAX request to itself.
Thanks
7 Answers, 1 is accepted
Although RadAjaxLoadingPanel is designed to be shown on AJAX updates, someone would like to show it on initial page load as well.
For more information about how to achieve this behavior please refer to this help article:
Show RadAjaxLoadingPanel on initial page load
Sincerely yours,
Pavlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thanks Kerry
I am not sure if I understand your scenario completely. Could you please elaborate a bit more in the details?
Please note that in order to get the AjaxLoadingPanel to show when the page is initially loaded you should use RadAjaxLoadingPanel control.
More information about how to use it you can find in the following link:
AJAX Loading Panel
Best wishes,
Pavlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
RadAjaxManager1_AjaxRequest event is fired, I am not using a ASP:Panel I am only using the AJAX loading Panel. I cannot get the loading panel to appear when the page is loaded...so I am wondering if its because I do not use the asp:panel. Below I've included the blocks of code. Thanks
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
DefaultLoadingPanelID="RadAjaxLoadingPanel1"
onajaxrequest="RadAjaxManager1_AjaxRequest">
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
height="75px" MinDisplayTime="600" width="75px">
<img alt="Loading..."
src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
style="border:0px;" />
</telerik:RadAjaxLoadingPanel>
<
telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function pageLoad(sender, eventArgs)
{
if (!eventArgs.get_isPartialLoad())
{
$find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("InitialPageLoad");
}
}
</script>
</telerik:RadCodeBlock>
protected
void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "InitialPageLoad")
{
//simulate longer page load
System.Threading.
Thread.Sleep(2000);
RadAjaxLoadingPanel1.Visible =
true;
}
}
I am sending you a simple runnable application that demonstrates the needed approach. Please give it a try and let me know if you have other questions or problems.
Greetings,
Pavlina
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.