Scrolling of 'datacontent'

Scrolling of 'datacontent'

petterpetter Posts: 8Questions: 0Answers: 0
edited March 2009 in General
I have tried, unsucessfully, to make the header 'fixed' while scrolling the content of the tbody.

Seems IE doesn't like setting fixed height of the tbody, works ok in opera/chrome/firefox.
Any idea's here??

Maybe a 'workaround' would be to split up the rendring of the dataTable into two tables, one containing the header and one containg the data..

Replies

  • allanallan Posts: 63,113Questions: 1Answers: 10,396 Site admin
    Hi Petter,

    There is quite a lot of information about this on the web - just Google for "scrolling tbody". Here is a great example which does the required job: http://www.imaputz.com/cssStuff/bigFourVersion.html .

    Although your work around probably would work, it seems a bit unnecessary since what you are trying to achieve can be done in CSS, and it would be semantically incorrect.

    Allan
  • petterpetter Posts: 8Questions: 0Answers: 0
    edited March 2009
    I checked out that link, but it i want work in IE7..
    Works in Opera/Firefox/Chrome..
    And as 90% of our customers are using IE... :(
  • allanallan Posts: 63,113Questions: 1Answers: 10,396 Site admin
    The site claims that it should work with IE. I'll have a look a trying to build a demo of this with DataTables in the near future.

    Allan
  • petterpetter Posts: 8Questions: 0Answers: 0
    That would be briliant..
  • euangreeneuangreen Posts: 7Questions: 0Answers: 0
    Hi,

    I've tried playing around with getting scolling content within the table using the link suggested:
    http://www.imaputz.com/cssStuff/bigFourVersion.html

    But this causes real problems with column widths and formatting, is there an example available of scrolling content working with the datatables plugin?

    Cheers

    Euan
This discussion has been closed.