This project is read-only.

edit selected row

Sep 4, 2014 at 9:30 AM
how do i edit selected row on a button click - where does the row get returned to? i read the documentation, but i'm very new to MVC.
Sep 16, 2014 at 10:59 PM
Edited Sep 16, 2014 at 11:00 PM
you can do it like this
@Html.Grid(Model).Columns(columns => 
{
     columns.Add().Encoded(false).Sanitized(false)
                         .RenderValueAs(c => @Html.ActionLink("Edit", "Edit", new { id = c.ID }));
}).WithPaging(15).Sortable(true)