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

[Solved] Json Error on Ajax Hierarchy Grid

0 Answers 99 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.
Muhammad
Top achievements
Rank 1
Muhammad asked on 14 Sep 2010, 06:28 AM
Hi,

I am trying to implement the Ajax binding on the grid. I have the ajax method in my controller, but there is no corresponding view because the controller has [gridaction] attribute which probably should make it return json. But I get this error in client javascript:

"Error! Request did not return json"

Also, if I put a break point, I see that the following error is actually being generated:

'/Grid/_EmployeesHierarchyAjax' was not found or does not implement IController.

I am exploring it myself, but any suggestions would be great on where to look for this.

A different question: If we directly access the grid ajax methods, what should they return? I noticed that if I type this in the browser, I get a page not found: http://demos.telerik.com/aspnet-mvc/grid/_OrderDetailsForOrderHierarchyAjax?orderID=10258

Thanks
Asif
Tags
Grid
Asked by
Muhammad
Top achievements
Rank 1
Share this question
or