2
Answers

Select all check box in Grid.MVC

Sagar Bandkar

Sagar Bandkar

7y
896
1
My code:-
@Html.Grid(Model).Columns(columns =>
{
columns.Add()
.Titled("<input name=allChk type=checkbox id=cbSelectAll />")
.Encoded(false)
.Sanitized(false)
.SetWidth(30)
.RenderValueAs(c => Html.CheckBox("checked", false, new { id = "checkBox" })).SetWidth(100);
columns.Add(c => c.inCosId, true);
columns.Add(c => c.vcCosCode).Titled("Country Code").Filterable(true);
}).WithMultipleFilters()
 

Answers (2)