"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;
},