How to position the bottom of the datatable ui

How to position the bottom of the datatable ui

SrilakshmiSrilakshmi Posts: 35Questions: 6Answers: 0
edited February 2014 in General
Hi,
I would be glad if someone could help me know how to position the bottom of the datatable ui to the bottom of the web page.
Thanks & Regards,
Srilakshmi

Replies

  • SrilakshmiSrilakshmi Posts: 35Questions: 6Answers: 0
    I mean how do I position the footer of the datattables ui.
  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    I assume that you have scrolling enabled in the table and you want the table footer (i.e. the element with the paging and information controls) to align to the bottom of the window?

    There isn't a built in way of doing that, but you can calculate it using standard jQuery methods. Something like this: http://live.datatables.net/yomuqis/1/edit . Its a bit messy since you need to take into account all of the elements that make up the height of the document. that are not the body, and then subtract that value from the height of the window to get the height of the body, but that's really the only way of doing it.

    Allan
This discussion has been closed.