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

[Solved] Ajax error on repeated grid sorting

2 Answers 201 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ruben Sutcliffe
Top achievements
Rank 1
Ruben Sutcliffe asked on 22 Apr 2008, 09:39 AM
I get this ajax error when I click on a header column to sort, and while the ajax is processing, I deliberately click on another column to sort again.

description: "Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts."

In normal situations, the ajax request will be aborted when it is interrupted by another ajax request, but during grid sorting, things seem to behave differently.

I tried the method described in the FAQ -> Disable controls during AJAX, where I use a RequestStart(sender, args)
 script during Ajax request start, but it cannot work because args.EventTargetElement is null.

2 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 22 Apr 2008, 09:45 AM
Hello Ruben,

I tried to reproduce the error but without success. Can you please let us know if it can be reproduced for example here:

http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/GeneralFeatures/Sorting/DefaultCS.aspx

or do we need some additional settings/changes for the Grid?

As to the event arguments, please review the event article here and let us know if you need further assistance.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ruben Sutcliffe
Top achievements
Rank 1
answered on 23 Apr 2008, 03:45 AM
I cannot reproduce it on your online demo.
But I think I solved it by copying the script here

http://www.codeplex.com/AtlasControlToolkit/WorkItem/View.aspx?WorkItemId=14712

Tags
Grid
Asked by
Ruben Sutcliffe
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Ruben Sutcliffe
Top achievements
Rank 1
Share this question
or