Missing oScroller
Missing oScroller
parubin
Posts: 2Questions: 0Answers: 0
'sDom' : '<"fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix"fr>t<"fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"iT>S',
but I have no scroller:
[code]
grid.fixupTable = function() {
// fix the height to 10 rows, probably should be a variable
var settings = grid.fnSettings();
var scroller = settings.oScroller;
grid.parent().height(scroller.fnRowToPixels(settings.numRows));
grid.fnAdjustColumnSizing();
var oTT = TableTools.fnGetInstance( grid[0] );
oTT.fnResizeButtons();
if (oSettings.oFeatures.bSort) {
grid.fnSort(oSettings.aaSorting);
}
if (grod.oldTop != 0) {
var scroller = grid.parent()[0];
scroller.scrollTop = grid.oldTop;
}
}
[/code]
settings.oScroller; is undefined?
The JavaScript console show no errors of any type
but I have no scroller:
[code]
grid.fixupTable = function() {
// fix the height to 10 rows, probably should be a variable
var settings = grid.fnSettings();
var scroller = settings.oScroller;
grid.parent().height(scroller.fnRowToPixels(settings.numRows));
grid.fnAdjustColumnSizing();
var oTT = TableTools.fnGetInstance( grid[0] );
oTT.fnResizeButtons();
if (oSettings.oFeatures.bSort) {
grid.fnSort(oSettings.aaSorting);
}
if (grod.oldTop != 0) {
var scroller = grid.parent()[0];
scroller.scrollTop = grid.oldTop;
}
}
[/code]
settings.oScroller; is undefined?
The JavaScript console show no errors of any type
This discussion has been closed.
Replies
Thanks,
Allan
The oScroller property is undefined.
Please fix if possible.
Regards,
Bogdan
I forgot to include the datatables.scroller.js script. Noob's mistake.