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

[Solved] Refreshing the grid with different query

1 Answer 68 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.
Varghese
Top achievements
Rank 1
Varghese asked on 10 Sep 2011, 05:16 AM
I have a grid in a view. I have also a 'change query form' on the same view. I can create a new query from the change query form and then make an ajax call to get data to update the grid. The change query form is an ajax form. As I understand it, the Ajax Form can't accept json data from the controller but only view or partial view. I don't want to replace the grid completely, so I dont want to return a partial view. I prefer receiving the json and update the grid.

What is my option here? Should I use jquery ajax call to get data from the controller and then update the grid? Is there a better solution than I'm talking here.


1 Answer, 1 is accepted

Sort by
0
Varghese
Top achievements
Rank 1
answered on 10 Sep 2011, 01:20 PM
I thought to respond to my own question. After adding the settings for unobtrusive javascript to the mvc3 project, I can get the json data to the view without any problem.
Tags
Grid
Asked by
Varghese
Top achievements
Rank 1
Answers by
Varghese
Top achievements
Rank 1
Share this question
or