MVC webgrid row selection and pass the values to controller
Please anybody help..
How to retrieve and pass the values of a webgrid row to the controllers action method on click of a button, if the radio button in the same row is selected in MVC?
i.e., I have a MVC application where in the view a webgrid is showing all the quotations available as rows of a webgrid.This is showing from a database table(say availableQuotes).Along with the quotation details there is a radio button as the last column in every webgrid row.I should be able o check any one quotation by selecting the radio button in that row and then on click of an Approve button I want to save the single row details(in which the radiobutton is selected) to another table (say ApprovedQuotes).
I have tried in manyways and searched a lot many solutions are giving option for getselectlink()..
As I am working on MVC webgrid for the first time am stuck on this.If anyone can direct me I will be grateful...Thanks in advance..
Nitin SharmaPosted Oct 2, 2014, 10:07 AM
Jaganathan BantheswaranPosted Dec 11, 2013, 11:57 PM
Jaima JosephPosted Dec 11, 2013, 6:49 AM
As far as I have not used Ajax.
Jaganathan BantheswaranPosted Dec 11, 2013, 6:00 AM
else,
While rendering the button column,
@grid.GetHtml(columns: new [] {
grid.Column(
"",
header: "Actions",
format: @
In the Update action,
public ActionResult Update(int id)
{
}