server side select all button

server side select all button

davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
edited December 2012 in General
Hi there,

is it possibile to make a server side button for select all row on the display atm??

many thx

Replies

  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    any idea about it?? :(
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    No - the whole point of server-side processing is that not all of the rows are available on the client-side, so it isn't possible to select all. It might be possible to put a hack in to tell TableTools to automatically select rows when they are loaded when in 'all' mode, but deselected rows would be a nightmare. You'd need to track each row, at which point there is no point in using server-side processing.

    Allan
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    sorry about that, for " all " i mean the 10/25/50/100 visibles on the screen atm.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Use aLengthMenu - there is an example in the documentation.
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    thx you Allan i give it a look now :)
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    I have a server side application and I want to allow the selection of multiple rows. time:
    I can do this by select line by line (even if I change the page lines are selected, saving the identifier in an array as I read here on the forum).
    But I would like something similar using the "select-all" only the rows that are displayed.

    is this possible?
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Yes - a select all only visible rows would work - and how how TableTools works.

    Can you please link me to a test case for what you are trying to do, as I'm getting very confused.

    Allan
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    edited December 2012
    Sure Allan,look at this :

    http://datatables.net/examples/server_side/select_rows.html

    in this server side's example,even when changing page the selected row remaing so .

    now i need a similar function with "select all" button .

    (select all = the 10 or the 25 or the 50 or the x row in a page )

    I hope I explained it well :)
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    any ideas allan ?? :(
  • davcarnabydavcarnaby Posts: 19Questions: 0Answers: 0
    $('#load_all').click(function(){
    var nNodes = $( oTable.fnGetNodes() )
    for ( var i=0 ; i
This discussion has been closed.