DHTMLX Docs & Samples Explorer

setAttribute(name, value)

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

sets a custom attribute (flag) for the specified cell

  • name - (string) the attribute name
  • value - (any) the attribute value
mygrid.cells("row1",1).setAttribute('invalid', true); 
...
mygrid.cells("row1",1).getAttribute('invalid'); // -> true

See also: getAttribute