ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: EPM Solutions on January 04, 2021, 09:29:42 am

Title: How to set font color and background color while adding new row into grid
Post by: EPM Solutions on January 04, 2021, 09:29:42 am
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:-



Title: Re: How to set font color and background color while adding new row into grid
Post by: paramvir on January 04, 2021, 05:18:11 pm
Please share your existing code for adding new row in grouped rows.
Title: Re: How to set font color and background color while adding new row into grid
Post by: paramvir on January 04, 2021, 10:17:05 pm
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