Skip to main content

addRowCss()

adds a style to a row

addRowCss(rowId: Id, css: string): void;

Parameters:

  • rowId: string | number - the id of a row
  • css: string - the name of the CSS class

Example

<style>    .myCustomClass{        background:greenyellow;    }</style>
grid.addRowCss("2", "myCustomClass");

Related sample: Grid. Add Row Css