tabletools: select all button select all table records not the displayed rows

tabletools: select all button select all table records not the displayed rows

drmovidrmovi Posts: 7Questions: 0Answers: 0
edited December 2012 in General
how could i use select all button to select only displayed record (say record of first page) instead of selecting all records

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    [code]
    tt.fnSelect( $('tbody tr') );
    [/code]

    Allan
  • drmovidrmovi Posts: 7Questions: 0Answers: 0
    [code]t.fnSelect( $('tbody tr') );[/code]
    how could i implement this code
  • drmovidrmovi Posts: 7Questions: 0Answers: 0
    ok fine it works when loading table but i want to use it when click select all btn
  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    Define a custom button which uses that code in fnClick - http://datatables.net/extras/tabletools/button_options#fnClick

    Allan
  • drmovidrmovi Posts: 7Questions: 0Answers: 0
    thanks Allan
This discussion has been closed.