Cannot select rows

Cannot select rows

didvaedidvae Posts: 6Questions: 0Answers: 0
edited February 2012 in General
Hi all,

I'm using the newest release of dataTables, but this still hapened on 1.8.2.

I cannot select rows in my table, only in my first page i can select
this is my code
[code]$(document).ready(function() {

$('#vInfLiqREE_Tarifa tr').click( function() {

$(this).toggleClass('row_selected');

});

var oTable = $('#vInfLiqREE_Tarifa').dataTable();

});[/code]

Replies

  • didvaedidvae Posts: 6Questions: 0Answers: 0
    this is how I init dataTables in my application
    [code]$('.dataTable').dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers",
    "bLengthChange": true,
    "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Todos"]],
    "oLanguage":{
    "sProcessing": "Procesando...",
    "sLengthMenu": "Mostrar _MENU_ registros",
    "sZeroRecords": "No se encontraron resultados",
    "sInfo": "Mostrando desde _START_ hasta _END_ de _TOTAL_ registros",
    "sInfoEmpty": "Mostrando desde 0 hasta 0 de 0 registros",
    "sInfoFiltered": "(filtrado de _MAX_ registros en total)",
    "sInfoPostFix": "",
    "sSearch": "Buscar:",
    "sUrl": "",
    "oPaginate": {
    "sFirst": "Primero",
    "sPrevious": "Anterior",
    "sNext": "Siguiente",
    "sLast": "Ult"
    }
    }
    });[/code]
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    http://datatables.net/faqs#events

    Allan
  • didvaedidvae Posts: 6Questions: 0Answers: 0
    Thanks allan, it was helpfull, I can select all rows I need, but when I return to a page that I have selected, it doesn't work, I have to leave and enter again to enable row selecting.
This discussion has been closed.