automatic page size

automatic page size

mikejmikej Posts: 8Questions: 0Answers: 0
edited February 2010 in General
Hi, I think it would be more user-friendly if my table would just fill the full height of the user's browser
(or, I guess, more generally the height of the it is in) rather than making the user select how many
rows they want to see. Is there a way to do that? Thanks.

Replies

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    This could probably be done with fnDrawCallback - you would measure the height of tbody, see if it fits into the div and then adjust the display length accordingly. It might take a few attempts to redraw the table - and you'll almost never get it pixel perfect (due to line breaks etc in the table) - but it's certainly possible.

    Quite a nice idea actually :-)

    Regards,
    Allan
This discussion has been closed.