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

RadGrid Loading Panel Stays Visible

3 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 16 Apr 2013, 06:03 PM
I'm having an issue where on slower servers the loading panel seems to stay visible and keeps spinning while also locking up the rest of the web functionality.

Here's how I reproduce it:
1. Click on folder and let it finish loading contents
2. Click on another folder with a lot of items and before it finishes loading, click back on the first folder.

The loading panel just spins and spins thus making the application useless.

The way it's setup is:
1. Folder Tree is in a Web User Control (.ascx)
2. Clicking a folder in the tree causes the correct grid control, also a Web User Control (.ascx), to load inside of the control with the tree

So 1 .ascx is calling another based on the selected tree node.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 19 Apr 2013, 08:32 AM
Hi Jason,

Could you please inspect the Ajax request and verify if any js errors appear in the response you get form the server? Also please verify if the Client OnResponseEnd event of the RadAjaxManager fires correctly. If yeas please try to show the RadAjaxLoadingPanel explicitly as shown below and verify if this works:
http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-LoadingPanel.html

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jay
Top achievements
Rank 1
answered on 29 Apr 2013, 06:19 PM
I've been looking at the example code to explicity show the RadAjaxLoadingPanel from the link you shared below and found that the

<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />

Isn't available in the RadAjaxManagerProxy?
I'm using master pages and web user controls so the controls that would need the <ClientEvents> javascript just reference RAM using the Proxy control. 

Do I just put this in the Master Page?
0
Maria Ilieva
Telerik team
answered on 01 May 2013, 10:23 AM
Hi,

The Proxy does not provide client-side functionality as the Manager does. There is no client-side object as well as functions like ajaxRequest/ajaxRequestWithTarget and client-side events.
In case you need to handle the master manager events in the user control or content page, you can attach event handlers to the manager as follows:
protected void Page_Load(object sender, EventArgs e)
{
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
    manager.ClientEvents.OnRequestStart = "onRequestStart";
    manager.ClientEvents.OnResponseEnd = "onResponseEnd";
    manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);
}
protected void manager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
    //handle the manager AjaxRequest event here
}

I hope this helps.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Jay
Top achievements
Rank 1
Share this question
or