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

Microsoft JScript runtime error: Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts.

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kannadasan
Top achievements
Rank 1
Kannadasan asked on 25 Nov 2010, 05:38 AM
Dear Team ,
I have two issues:

1.I got this type of errro.when i click continue  any edit button in grid or add new button in grid
Microsoft JScript runtime error: Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts.
how can  i avoid this problems ..this major problems in my project..our client ask questions.

2. when i click addnew or edit button in grid takes time to open in entry field ..how can  i avoid this problems..it is verry slow ..give good solution for past access for grid fields.

need quick past,

With Regards,
S.Kannadasan


1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Nov 2010, 11:43 AM
Hello Kannadasan,

Could you please let me know if you are using Ajax calls in your application?

1. If Ajax is used one possible solution for this is setting RequestQueueSize property of RadAjaxPanel/RadAjaxManager. Its default value is 0. You can find more information about this property on the following links:

 RequestQueueSize Property
Ajax requests queueing

Other option is to cancel ajax request if your script is already executing one as shown here:
<script type="text/javascript">   
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(initRequest);   
    function initRequest(sender, args)   
    {   
        if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())   
            args.set_cancel(true);   
    }   
</script>  

2. Regarding the performance issue you are facing please revise the links below:
http://www.telerik.com/help/aspnet-ajax/gridoverview.html (Chapter 'Performance tips and tricks'
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx
http://www.telerik.com/support/aspnet-ajax.aspx (Section "Performance")

Regards,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Kannadasan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or