Datatables scroller displaying strange information values (Showing 235 to 198 of 198 entries)
Datatables scroller displaying strange information values (Showing 235 to 198 of 198 entries)
I've had this working for weeks, but must have done something to break it. I have a height value specified for the cells, and looking at Firebug, it shows all the rows having the same value, but it's not displaying the right value in the information section. Here is a sample:
http://www.mtncom.net/members/test.html
Here is what I'm using:
DataTables 1.9.4
jquery 1.8.3
jquery ui 1.9.2
fixedcolumns 2.5.0 dev
colreorder 1.0.8
scroller 1.1.1 dev
I've tested it in IE 9.0.8112.16421, Firefox 17.0.1 and Chrome 23.0.1271.97 m, and they all display funky results.
http://www.mtncom.net/members/test.html
Here is what I'm using:
DataTables 1.9.4
jquery 1.8.3
jquery ui 1.9.2
fixedcolumns 2.5.0 dev
colreorder 1.0.8
scroller 1.1.1 dev
I've tested it in IE 9.0.8112.16421, Firefox 17.0.1 and Chrome 23.0.1271.97 m, and they all display funky results.
This discussion has been closed.
Replies
Allan
[code]
#tabs-1 td { height:25px; min-width:75px; white-space:nowrap; border-right:1px solid #888; border-top:1px solid #888; padding:2px; }
[/code]
I also tried setting the fnMeasure in the fnInitComplete. This is my code:
[code]
"fnInitComplete": function(){
var oSettings = this.fnSettings();
$('tfoot input:visible').each(function(){
var index = $("tfoot input").index(this);
$(this).val(oSettings.aoPreSearchCols[index].sSearch);
if(this.value == "")
{
$(this).addClass('search_init');
this.value = asInitVals[$("tfoot input").index(this)];
}
});
oFC = new FixedColumns(oTable, {"sRightWidth": "fixed", "iLeftWidth": 25});
oSettings.oScroller.fnMeasure();
}
[/code]
Allan
Allan
Allan
[code]
[/code]
I didn't include the tabs in the demo, more just an FYI.
EDIT: Boy, did I ever over-think the solution. I didn't notice the rowHeight option of scroller. I just needed to specify that to the same value as my height value in css and it worked much better.