RealGrid2 Guide
Header and Footer
Header checkbox

Header checkbox

This page explains how to implement checkboxes in RealGrid’s column headers. If you specify a location in column.header.checkLocation, a checkbox will be displayed at that location. For a list of locations, see ColumnHeaderItemLocation.

Column header checkbox location

  • checkLocation: Specifies the location of the header checkbox.
var columns = [{
     name: "KorName",
     fieldName: "KorName",
     width: "60",
     header: {
       text: "Name",
       checkLocation: "left"
     },
     checked: true
   },
}

Column header check callback

gridView.onColumnCheckedChanged = function (grid, col, chk) {
     console.log(col.name + " was checked as: " + chk);
};

Select column header check

  • column.checked: Selects a check in the column header.
var checkColumn = gridView.columnByName("KorName");
checkColumn.checked = true;