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

suppress "Error! The requested URL did not return JSON."

7 Answers 217 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
y
Top achievements
Rank 1
y asked on 16 Sep 2010, 01:07 PM
Hi,

How can i suppress the following alert "Error! The requested URL did not return JSON."
In the documentation it says to use e.preventDefault() but it doesn't do the trick it still fires after the OnError...

Thanks for your help

7 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 16 Sep 2010, 02:56 PM
Hi y,

Thank you for pointing this issue.

I am glad to inform you that the problem is already fixed and the fix will be included in the next official release of Telerik Components for ASP.NET MVC. For your convenience I have attached the modified telerik.common.min.js file which includes the fix of this erroneous behavior.

Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
y
Top achievements
Rank 1
answered on 16 Sep 2010, 03:37 PM
Thanks
0
arjun
Top achievements
Rank 1
answered on 11 Nov 2010, 06:50 AM
Hi Georgi ,

I have tried to by using this new script  common.js file but still i am facing the same  Error -

Error! The requested URL did not return JSON

Please sugeest if any another solution......
0
Kent Muller
Top achievements
Rank 1
answered on 07 Dec 2010, 06:01 AM
Hi Georgi,

I too have tried this fix but am still experiencing the alerts when navigating away from a page where Telerik MVC Grids are in the process of Ajax binding.

Could you advise the best way to suppress these messages completely?

Many thanks,

Kent.
0
Ulrich Witschaß
Top achievements
Rank 1
answered on 07 Dec 2010, 01:08 PM
We have the same problem. Please keep us informed on any updates related to this issue.
0
Atanas Korchev
Telerik team
answered on 07 Dec 2010, 01:55 PM
Hello Ulrich Witschaß,

 You can use the OnError event to handle this case. The grid will always show this alert if the action method does not return JSON.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sreyas
Top achievements
Rank 1
answered on 13 May 2012, 11:12 AM
Hi Friends,

If you really wish to avoid this erreor,you can comment the specific alert dialoge in the telerik..grid.min.js file.

Sreyas MN
Tags
Grid
Asked by
y
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
y
Top achievements
Rank 1
arjun
Top achievements
Rank 1
Kent Muller
Top achievements
Rank 1
Ulrich Witschaß
Top achievements
Rank 1
Atanas Korchev
Telerik team
Sreyas
Top achievements
Rank 1
Share this question
or