Yet another PrintView problem

I use custom row renderer on load like this:



mygrid.attachEvent(“onRowCreated”, function(id){

mygrid.cells(id,2).cell.innerHTML = someFunction();

return true;

});



In printView onRowCreated is not executed for invisible rows

In printView onRowCreated is not executed for invisible rows
This is expected behavior. onRowCreated executed only when row in grid created, in case of paging or smart rendering mode, it occurs only when row become visible. PrintView access rows data directly without rendering rows ( which allows fast rendering )

You can add next code before printView call
for (var i=0; i<mygrid.getRowsNum(); i++)
mygrid.render_row(i);

it will render all rows in grid , which will execute code attached to onRowCreated for all of them