FIXED COLUMN - I NEED HELP Please I

FIXED COLUMN - I NEED HELP Please I

cgretaquispecgretaquispe Posts: 9Questions: 1Answers: 0
edited July 2014 in Free community support

HAVE A PROBLEM WHEN WE PAINT THE ENTIRE ROW USING FIXED COLUMN

tbaProductosAsignados = $('#tbaProductosAsignados').dataTable({
bServerSide: true,
sAjaxSource: frmRegistrarDinamica + "ListarProductosDinamicaContable",
bProcessing: true,
sPaginationType: "full_numbers",
sScrollY: "290px",
sScrollX: "1500px",
sScrollXInner: "150%",
bFilter: false,
bSort: true,
bSortCellsTop: true,
fnDrawCallback: function(oSettings) {},
oLanguage: {
"sEmptyTable": "Ningun producto asociado a la dinámica contable.",
},
....
}

new $.fn.dataTable.FixedColumns(tbaProductosAsignados, {
leftColumns: 0,
rightColumns: 1
});

$(tbaProductosAsignados + ' tbody').on('click', 'tr', function() {
if ($(this).hasClass('row_selected')) {
//$(this).removeClass('row_selected');
} else {
var odtableAyu = $(tabla).dataTable();
odtableAyu.$('tr.row_selected').removeClass('row_selected');
$(this).addClass('row_selected');
}
});

DOES NOT PAINT THE ENTIRE ROW, i.e. DOES NOT PAINT THE FIXED ROW :(

Replies

  • DaimianDaimian Posts: 62Questions: 1Answers: 15

    You will have to add code to check the table row index of the selected row and use that to add the selected class to the cloned Fixed Column table.

  • cgretaquispecgretaquispe Posts: 9Questions: 1Answers: 0

    I don't really understand, you can upgrade the code and how to do an example please, it is urgent. Thanks

  • cgretaquispecgretaquispe Posts: 9Questions: 1Answers: 0
    <?php ??????????? ?>
  • cgretaquispecgretaquispe Posts: 9Questions: 1Answers: 0
    <?php ???? ?>
This discussion has been closed.