ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: vijay@spinetechnologies on August 10, 2022, 12:12:44 pm
-
Hi Team,
In PQ Grid can we achieve Calculative Column and Reference Of Calculative Column in Next Row?
Please find the attachment for your reference.
-
you can either use Excel formulas or cell value getters with rowTemplate option.
-
How to access previous or next rows in RowTemplate ?
-
"this" points to current rowData inside getter/setter of rowTemplate
so previous row is
var nextRow = grid.pageData()[this.pq_ri - 1];
where grid points to grid instance ( a global variable ) and is obtained in render event.
render: function(){
grid = this;
},