How to Enable or Disable Check Box in Webgrid Base on Model Value

  1. grid.Column
  2. (
  3. columnName: "bool1",   
  4.     header: "bool1",   
  5.     format: (item) => @Html.Raw
  6. (
  7. "<input type='checkbox' " + ((item.bool1==true) ? "checked" : "") + " disabled='disabled' />"
  8. )  
  9. )