ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: sshede on August 18, 2021, 05:14:27 pm

Title: how to add class for cell
Post by: sshede on August 18, 2021, 05:14:27 pm
Hi

Hi How to add class in 2 cell for same row.
Please check below code. Not working below code.

  { title: "Audit", dataType:"string",dataIndx: "actions", width: 70 , cls:'pqImgClass',menuIcon: false,tpHide: true,
                    render : function (ui) {
rowData.pq_cellcls = rowData.pq_cellcls || {};
rowData.pq_cellcls["text1"] ="pqImgClass";
rowData.pq_cellcls["text2"] ="pqImgClass";
 }
                },
Title: Re: how to add class for cell
Post by: paramvir on August 24, 2021, 09:47:29 pm
Please use rowInit callback.

https://paramquery.com/pro/api#option-rowInit