Sagar Bandkar

Sagar Bandkar

  • 1.4k
  • 347
  • 48.9k

Select all check box in Grid.MVC

Dec 1 2016 4:11 AM
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)