DataTables / Responsive

Responsive extension for DataTables, providing support for complex tables on all device screen sizes
Other
148 stars 86 forks source link

loadingRecords is not working with responsive plugin. #101

Closed parth67 closed 6 years ago

parth67 commented 6 years ago

loadingRecords is not working with responsive plugin.

Details: Inside _constructor _resize is called before dt is initialize.

// First pass - draw the table for the current viewport size
this._resize();

which internally calls dt.draw() and increments iDraw counter.

Condition to use loadingRecords is like

if ( oSettings.iDraw == 1 &&  _fnDataSource( oSettings ) == 'ajax' )
{
     sZero = oLang.sLoadingRecords;
}