Reputation:
I have mvc grid like this.
@(Html.Grid(Model)
.Build(col => {
col.Add(model => Html.CheckBox("Person_" + model.Id));
col.Add(c => c.Code).Titled(BusinessUI.Code).Sortable(true).Filterable(true).Encoded(false);
})
.Sortable()
.Filterable()
.Empty(CommonUI.NoInfo)
.Css("table-bordered table-hover")
)
I need send to controller only checked rows when i press submit button. How to do it ?
Upvotes: 0
Views: 290
Reputation: 1
You need to have bool checked property in your model, and then on sumbit you are goin to check if that row is checked or not.
Upvotes: 0