Author Topic: How to set font color and background color while adding new row into grid  (Read 1667 times)

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Hello Team,

Thanks,

I need to be change font color as red and background color as yellow while adding new row in grid.

Please suggest to me or provide snippet of code.

Please find the below screenshot:-




paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Please share your existing code for adding new row in grouped rows.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Please use pq_rowstyle metadata of rows to add css styles.

Code: [Select]
var newRow = { pq_rowstyle: { "background-color": "#ffff00", color: "#0000ff" } };
grid.Group().addNodes([newRow], parent);

Example: https://paramquery.com/pro/demos/group_rows_editing