Show all rows on the fly

Show all rows on the fly

rahirahi Posts: 2Questions: 0Answers: 0
edited June 2011 in General
Hi,

This is my first ever post here so you may expect something very basic. I am really enjoying using datatables. I have got stuck at one point and I hope somebody out there will help me out.

My Code:
[code]
var oTable;
jQuery(document).ready(function() {
oTable = jQuery('#preview-table').dataTable(
{"aLengthMenu": [[10, 50, 100, 150, 200, 250, 300, -1],[10, 50, 100, 150, 200, 250, 300, "All"]]}
);
} );
[/code]
I have wrapped up preview-table in a form. There is a checkbox in first column of every row to select which row to update on submit.

Problem:
Everything works fine other than one thing i.e. Only visible rows are posted.

Work Out:

Here I m stuck. What to do to show all rows on submit so that all visible and invisible rows should be posted for processing.

I hope I was clear in presenting my problem.

Thanks in advance for any help.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Perfectly clear :-). Here is an example showing how this can be overcome: http://datatables.net/release-datatables/examples/api/form.html

    Allan
  • rahirahi Posts: 2Questions: 0Answers: 0
    Awesome Allan! you rock.
This discussion has been closed.