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

LoadingPanel problem

8 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 20 Feb 2010, 08:22 AM
Hi

I am getting following error during load time after added the loading panel into the grid.
"Microsoft JScript runtime error: 'Sys.WebForms.PageRequestManager' is null or not an object".

And interrups the running of the program..
ASPX code is:

 

 

 

 <telerik:RadAjaxManager ID="radAjaxManager" runat="server" ClientEvents-OnRequestStart="requestStart" 
                OnAjaxSettingCreating="radAjaxManager_AjaxSettingCreating">  
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="ajaxLoadingPanel" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
                <ClientEvents OnRequestStart="requestStart" /> 
            </telerik:RadAjaxManager> 
            <telerik:RadAjaxLoadingPanel ID="ajaxLoadingPanel" runat="server" Height="75px" 
                Width="75px" HorizontalAlign="Left" BackgroundPosition="BottomLeft" Direction="LeftToRight">  
                <div style="position: absolute; left: 500px; top: 200px">  
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                        style="border: 0px;" /> 
                </div> 
            </telerik:RadAjaxLoadingPanel> 

I could not find out where i made mistake..so help me find out the issue
--Thanks

8 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Feb 2010, 05:08 AM
Hi,

I have checked your design and have found no issues with it.Could you post the OnRequestStart js function that you have created . It might be causing the issue 

Thanks,
Princy

0
John John
Top achievements
Rank 1
answered on 22 Feb 2010, 06:55 AM

Hi Princy,
                Here it is my onRequestStart event for your reference,

function requestStart(sender, args) {  
 
if (args.get_eventTarget().indexOf("btnExport") > 0)  
args.set_enableAjax(false);  
}  
 

-Thanks

 

 

 

0
John John
Top achievements
Rank 1
answered on 22 Feb 2010, 02:02 PM

Hi,

  I solved that issue by removing "EnablePartialRendering" property  from ScriptManager section.Now it is working fine.

 

Thanks for your cooperation

0
John John
Top achievements
Rank 1
answered on 05 Mar 2010, 12:15 PM
Hi,
          Now i am getting another problem for implementing LoadingPanel. Early i removed  EnablePartialRendering="false"  from the ScriptManager section so that some of the forms LoadingPanel working fine without any error.

I intrduced the same scenario for my another new form. But now i am getting the following error 
"htmlfile: Unknown runtime error".

 So  what to do for some of my webforms loadingpanel working fine by removing  EnablePartialRendering="false",  but applying the same scenario some other form is getting the htmlfile: Unknown runtime error".

I am totally confusing about the above error, so what to do to implementing the LoadingPanel to my form. So give me suggession to do it.

-Thanks



0
John John
Top achievements
Rank 1
answered on 08 Mar 2010, 02:17 PM
Any suggessions?
0
John John
Top achievements
Rank 1
answered on 11 Mar 2010, 04:50 PM
Any suggessions?
0
John John
Top achievements
Rank 1
answered on 25 Mar 2010, 09:21 AM
Dear Telerik,
                   what are the steps i need to take to avoid the "htmlfile: Unknown runtime error" issue. As this error caused every time when grid loading opeartion is done i am not able to bring Loading panel because of the error.

So help me to find the issue;

Regards,
John
0
Bruno
Top achievements
Rank 2
answered on 26 Mar 2010, 09:23 PM
Hi

this is Bruno and I d try Google if I was you

http://stackoverflow.com/questions/441038/asp-net-updatepanel-error-htmlfile-unknown-runtime-error-updatepanelelement-inn

http://timwarddevelopment.blogspot.com/2009/02/obscure-ajax-error-htmlfile-unknown.html

http://forums.asp.net/t/1087252.aspx

Bruno



Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
John John
Top achievements
Rank 1
Bruno
Top achievements
Rank 2
Share this question
or