Hi,
I am facing issue with virtual scrolling due to uneven rowheights. I have a solution to it but would like to understand if it can be done via virtue of extending a jqgrid method
In updatepager method below line highlighted in red need to be replaced by solution
//var rh = rows.outerHeight() || ts.grid.prevRowHeight;
//soln –
var totalHeight = 0;
var totalRows = rows.length;
$.each(rows,function() { totalHeight += $(this).height(); });
var rh =Â (totalHeight != 0 && totalRows != 0)?totalHeight/totalRows: ts.grid.prevRowHeight;
Â
Please let me know if we already have a fix for it.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top