created a new functionlity to update the sScrollXInner setting of the table
created a new functionlity to update the sScrollXInner setting of the table
In some of my cases my table is to big fot the page thats why i use the sScrollXInner setting.
but when i hide some of the columns it can be usefull to recalculate the sScrollXInner and update these.
i would like to share this functionality
this.UpdateScrolXY = function ( width)
{
var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
if(width != "")
{
oSettings.oScroll.sXInner= width;
}
this.fnDraw();
}
but when i hide some of the columns it can be usefull to recalculate the sScrollXInner and update these.
i would like to share this functionality
this.UpdateScrolXY = function ( width)
{
var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
if(width != "")
{
oSettings.oScroll.sXInner= width;
}
this.fnDraw();
}
This discussion has been closed.
Replies
Allan
Allan
$.fn.dataTableExt.oApi.UpdateScrolX = function (oSettings, width)
{
//var oSettings = _fnSettingsFromNode(this[_oExt.iApiIndex]);
if(width != "")
{
oSettings.oScroll.sXInner= width;
}
this.fnDraw();
}
put this in a new file (for example datatablesExtentions.js) add this js page to you'r html after the datatables js file