Missing oScroller

Missing oScroller

parubinparubin Posts: 2Questions: 0Answers: 0
edited March 2014 in DataTables 1.9
'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

Replies

  • parubinparubin Posts: 2Questions: 0Answers: 0
    Sorry, it has been a year since I last worked with this... It is a plugin.
  • allanallan Posts: 61,627Questions: 1Answers: 10,090 Site admin
    Did you get this working? The oScroller property should still exist on the settings object? Can you link to a test case if not.

    Thanks,
    Allan
  • bogdan_popescubogdan_popescu Posts: 2Questions: 0Answers: 0
    I'm also having this issue using 1.9.4 version.
    The oScroller property is undefined.

    Please fix if possible.

    Regards,
    Bogdan
  • bogdan_popescubogdan_popescu Posts: 2Questions: 0Answers: 0
    Fixed this.

    I forgot to include the datatables.scroller.js script. Noob's mistake.
This discussion has been closed.