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

[Solved] [GridAction] returning view, not JSON

1 Answer 58 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.
Jon Baron
Top achievements
Rank 1
Jon Baron asked on 21 Jun 2012, 07:44 PM
So,

I have a grid that I need to populate based off input from something. Right now I'm trying to use a 2nd grid, and send that via an Edit/Update command, to an Action method decorated with the [GridMethod] attribute.

Everything passes ok, the data I expect to see, I can see. But the destination grid is never updated, instead the method returns a pure View, not a JSON result. I am using the GridModel class.

I am trying to bind this 2nd grid using AJAX, just like are used in the examples.

Another thing to note is these grid(s) are on Partial Views within the tabstrip. Initially I had everything bound from the Server side, but on the RedirectToAction, the current Tab was lost, and renavigating too it lost the info.

Any help would be much appreciated!

EDIT - I switched it to use an AJax form instead.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Jun 2012, 12:09 PM
Hello Jon,

This is unknown issue. Could you provide the code for the Grid and the action method so I can check the setup and investigate what could be causing this behavior?

Regards,
Daniel
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Jon Baron
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or