MVCContrib Grid - how to add and delete rows with ajax?
问题 I'm wondering what's the best strategy to delete a row in MVCContrib generated grid. Consider this grid: Html.Grid(Model.Proc.Documents).Columns(column => { column.For(c => c.Name).Named("Title"); column.For(c => c.Author.Name).Named("Author"); column.For("Action").Action( delegate(DocumentDto doc) { const string cbxFrmt = "<td><strong><a href=\"#\" onclick=\"DocDetails({0})\">View details</a></strong> | " + "<strong><a href=\"#\" onclick=\"RemoveDoc({1})\">Delete</a></strong>" + "</td>";