sScrollY causes disabling details rows
sScrollY causes disabling details rows
Hi,
I have this problem, when i add sScrollY, the details of my rows went disabled.Here's the declaration of my table object :
[code]var oTable = $('#example').dataTable( {
"bJQueryUI": true,
"bRetrieve": true,
"bFilter": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"bScrollCollapse": true,
"sScrollY": "500px",
"oLanguage": {
"sSearch": "Search all columns:",
}
} );
[/code]
Plz, if someone can help!!
I have this problem, when i add sScrollY, the details of my rows went disabled.Here's the declaration of my table object :
[code]var oTable = $('#example').dataTable( {
"bJQueryUI": true,
"bRetrieve": true,
"bFilter": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"bScrollCollapse": true,
"sScrollY": "500px",
"oLanguage": {
"sSearch": "Search all columns:",
}
} );
[/code]
Plz, if someone can help!!
This discussion has been closed.
Replies
Thanks,
Allan
yes the example is the same i use with some modificaions (see the code), if i add "sScrollY": "500px", the details rows went disable.
I got a new probleme !! :), but for this one i hope not boring u ;)
As u can see in the code i use Smart Cart plugin taken from http://www.techlaboratory.net/products.php?product=scat
the "add to cart" button in the details of each row, when i click this button it can't reach the div target placed outside of the datatables div, any idea???
here's the whole code :
[code](function($) {
$.fn.dataTableExt.oApi.fnGetColumnData = function ( oSettings, iColumn, bUnique, bFiltered, bIgnoreEmpty ) {
if ( typeof iColumn == "undefined" ) return new Array();
if ( typeof bUnique == "undefined" ) bUnique = true;
if ( typeof bFiltered == "undefined" ) bFiltered = true;
if ( typeof bIgnoreEmpty == "undefined" ) bIgnoreEmpty = true;
var aiRows;
if (bFiltered == true) aiRows = oSettings.aiDisplay;
else aiRows = oSettings.aiDisplayMaster; // all row numbers
var asResultData = new Array();
for (var i=0,c=aiRows.length; i -1) continue;
// else push the value onto the result data array
else asResultData.push(sValue);
}
return asResultData;
}}(jQuery));
var asInitVals = new Array();
function fnFormatDetails ( oTable, nTr )
{
var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += '';
sOut += '';
sOut += '';
sOut += 'Dimention : '+aData[4]+'
Indice vitesse : '+aData[5]+'';
sOut += 'Prix : '+aData[8]+'';
sOut += 'Quantit
> when i click this button it can't reach the div target placed outside of the datatables div, any idea???
I don't quite understand. Which part of the code is having this issue?
Allan