FIXED COLUMN - I NEED HELP Please I
FIXED COLUMN - I NEED HELP Please I
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
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.
I don't really understand, you can upgrade the code and how to do an example please, it is urgent. Thanks