sScrollY causes disabling details rows

sScrollY causes disabling details rows

slash135slash135 Posts: 3Questions: 0Answers: 0
edited November 2010 in General
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!!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Do you mean 'details' like in this example: http://datatables.net/examples/api/row_details.html ? I've just tried it on my own example and it seems to work okay. Can you give us a link to a page which is showing the problem?

    Thanks,
    Allan
  • slash135slash135 Posts: 3Questions: 0Answers: 0
    edited November 2010
    Thanx allan for the reply,
    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
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you give me a link to an example of the 'details' row not working please?

    > 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
This discussion has been closed.