Intact rows even for the last page

Intact rows even for the last page

laverrodlaverrod Posts: 2Questions: 0Answers: 0
edited March 2010 in General
Hi
I am new to datatables and made it working, but I would like to ask how I can get rows (matter of page size) intact even for the last page? Even if I have 1 to 11 rows with data out of the page size of 12, I would like to render the remaining empty rows to have unchanged height of the datatable?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You just need to give your table (tbody or 'table' itself' a min-height. Of course IE 6 (and 7?) might not like this - but you can just assign an absolute height to the table wrapper element to stop everything below the table bouncing around. Poking around with Firebug for this would be good to understand the generated DOM structure.

    Allan
  • laverrodlaverrod Posts: 2Questions: 0Answers: 0
    Thank you for your suggestion!
    Your Datatables is really a good one, but in my specific needs in both design and functionality makes me forced to make my own from scratch. I needed to keep the zebra rows, even if they where empty.
    Anyway, I have developed my own ajaxed datatable with much less code and greater flexibility. But it is not based on jQuery as a plugin.
This discussion has been closed.