This project is read-only.

Inline Edit

Oct 8, 2012 at 12:21 PM

Can i have inline Edit of specific column with update and cancel options.

Can i have button for each row to delete or do sepcific action.

Oct 9, 2012 at 4:14 AM

GridMvc does not have built-in function of inline editing, you need to do this manually.

Making specific actions very easy, use RenderValueAs method:

@helper RenderManageColumn(Foo item)
    <form method="POST" action="@Url.RouteUrl(new { controller = "Foo", action = "Delete", id = item.Id })">
        <button onclick="return confirm('Are you sure?')" type="submit">

@Html.Grid(Model).Columns(columns =>
    columns.Add(foo =>
        .RenderValueAs(foo => RenderManageColumn(foo).ToHtmlString());