Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/05/2016, 20:04
asalomon
 
Fecha de Ingreso: julio-2011
Mensajes: 9
Antigüedad: 12 años, 9 meses
Puntos: 0
Respuesta: Modificar el componente jquery.dataTables.js

Anexo te envio el scrip en donde suma los tr y quiero saber que debo de hacer para que pueda sumar los <tr> y ademas que me funcionen las paginaciones.



function _fnAddData ( oSettings, aDataIn, nTr, anTds )
{
/* Create the object for storing information about this new row */
var iRow = oSettings.aoData.length;
var oData = $.extend( true, {}, DataTable.models.oRow, {
src: nTr ? 'dom' : 'data'
} );

oData._aData = aDataIn;
oSettings.aoData.push( oData );

/* Create the cells */
var nTd, sThisType;
var columns = oSettings.aoColumns;
for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
{
// When working with a row, the data source object must be populated. In
// all other cases, the data source object is already populated, so we
// don't overwrite it, which might break bindings etc
if ( nTr ) {
_fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
}
columns[i].sType = null;
}

/* Add to the display array */
oSettings.aiDisplayMaster.push( iRow );

/* Create the DOM information */
if ( !oSettings.oFeatures.bDeferRender )
{
_fnCreateTr( oSettings, iRow, nTr, anTds );
}

return iRow;
}