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

Getting this message: this._loadingPanelsToHide.length is null or not an object

2 Answers 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 09 Oct 2009, 08:23 PM
Hello all,

We have an application that uses Telerik controls which works perfectly, however  every time we change to another option page before the previous one has been fully uploaded, we got this message (this is done from menu options):

this._loadingPanelsToHide.length is null or not an object

and when we accept to debug it, it points to this line:
$create(Telerik.Web.UI.RadAjaxManager, {"_updatePanels":"","ajaxSettings":[{InitControlID : "pnImportBatch",UpdatedControls : [{ControlID:"pnImportBatch",PanelID:"rlpImportBatch"}]}],"clientEvents":{OnRequestStart:"",OnResponseEnd:""},"defaultLoadingPanelID":"","enableAJAX":true,"enableHistory":false,"links":[],"styles":[],"uniqueID":"ramImportBatch","updatePanelsRenderMode":0}, null, null, $get("ramImportBatch"));

How can we prevent this error message to appear ?

Regards

2 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 12 Oct 2009, 02:48 PM
Any idea ?
0
Sebastian
Telerik team
answered on 15 Oct 2009, 12:47 PM
Hello Alex,

It seems that the array of loading panels is not fully initialized in this particular case and causes the error generation. To avoid it, you may consider disabling the grid until the asynchronous request on paging operation finishes execution. Examine the help articles linked below for more details on the suggested approach:

http://www.telerik.com/help/aspnet-ajax/ajxdisablecontrolsduringajax.html
http://www.telerik.com/help/aspnet-ajax/grdenabledconventions.html

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or