click(grid, row)

  • This is a user edit event function.
  • grid number Grid object.
  • row number Grid row object.

Row object structure.

  • Description of row object in edit function.
  • row.rowIndex number Data Row Index.
  • row.columnIndex number Column Index.
  • row.columnName string Column name.
  • row.value string, nubmer Column value.
  • row.text string Column text.
  • row.data json object Copyed row data.
  • row.layout json object Copyed row layout data.

Edit event samples

// Samples
grid1.onClick(function(grid, row) {
    alert('click');
});