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

MVC - Passing Grid Row Object to Controller Action

1 Answer 259 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Navin
Top achievements
Rank 1
Navin asked on 18 Jul 2013, 05:23 PM
I currently have a grid that is bound via an Ajax call. The model is a List<Objects> for the view. I have a button that on click I would like to pass the selected data grid object to a different controller/action. 

I have tried to do a Ajax Post however the response is HTML but it does not get rendered to the browser.

Is there an easier way to do this? 

Thanks,
Nav

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 22 Jul 2013, 09:55 AM
Hello Navin,

You should either create hyperlink using the template of the column or you can invoke an external function that performs $.ajax request and passes the row ID to the controller.

Check both examples below:

http://jsbin.com/aqedog/2/edit


Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Navin
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or