DHTMLX Docs & Samples Explorer

setFieldName(mask)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid_form.js

allows to define input name which will be used for data sending, name may contain next auto-replaced elements:

  • GRID_ID - ID of grids container,
  • ROW_ID - ID of row,
  • ROW_INDEX - index of row,
  • COLUMN_ID - id of column,
  • COLUMN_INDEX - index of column
  • name - input name mask
   mygrid.setFieldName("{GRID_ID}[{ROW_INDEX}].{COLUMN_ID}"); // gridbox[0].columnA

See also: submitAddedRows, submitOnlyChanged, submitOnlyRowID, submitOnlySelected, submitSerialization