table to fill height with content scrolling

table to fill height with content scrolling

lordzardecklordzardeck Posts: 2Questions: 0Answers: 0
edited January 2012 in General
Is there any way to make it so that the entire table widget fills the height of the parent, but that the actual rows scroll if the space is not available? basically the header is static to the top of the container, and the footer is static to the bottom of the container, with the table itself scrolling in-between.

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    I think you would need to calculate the height that is available for use and then use that computed value to set sScrollY and that should do it. I've just experimented with using a percentage value, but there are so many container elements, it doesn't do exactly what is needed.

    Allan
  • lordzardecklordzardeck Posts: 2Questions: 0Answers: 0
    would you calculate the height of the entire dataTable widget? or would you have to subtract the header and footer heights?
This discussion has been closed.