Can't select rows on 1+ pages

Can't select rows on 1+ pages

maykinomaykino Posts: 10Questions: 2Answers: 0
edited February 2014 in DataTables 1.9
Selecting rows works only on the first loaded page. When I go to 2, 3 etc it doesn't select anything. When I select to show more records at once from the dropdown, it allows to only select the first 25.

HEre is the debug:
http://debug.datatables.net/uzicij

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Top FAQ: http://datatables.net/faqs#events .
  • maykinomaykino Posts: 10Questions: 2Answers: 0
    Thank you for your response. I've done the following and it looks like it applies iCheck this time however as soon as I navigate to another pagination page I can only click on the last checkbox and can't navigate away anymore to any other pagination page. Is there anything wrong with the syntax below:

    [code]
    //Support

    $(document).ready(function() {

    //turn_on_icheck(checkboxClass);

    var oTable = $('.data-table').dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers",
    "sDom": '<""l>t<"F"fp>',
    "aoColumnDefs": [{"bSortable": false, "aTargets": [0]}],
    });
    $( oTable.fnGetNodes() ).iCheck( {
    checkboxClass:'icheckbox_square-blue'
    } );

    });

    [/code]
  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Looks okay to me. It is selecting the TR nodes of hte table and you are passing them into iCheck. If iCheck is expecting TR nodes (?) then, its okay.

    iCheck might require the elements to be in the DOM I guess - I don't know I'm afraid.

    Allan
This discussion has been closed.