Resize and Scroll Enhancements

Resizable and Scrollable Table implementation has been rewritten from scratch based on the community feedback for 3.5. PrimeFaces DataTable uses 100% width to span the container however for scrollable and resizable columns cases this was not the case and fixed column widths were used instead. This provides the required functionality however there was room for improvement by supporting percentages. This has been a popular request from PrimeFaces Users.

After 1 week of work, following enhancements are now available for 3.5 regarding these two features;

  • It is not mandatory to provide fixed column widths with width attribute
  • Percentages are now supported for column widths
  • ScrollWidth and ScrollHeight attributes also accept percentages like scrollHeight=”50%”
  • Column Resizing has a new mode called Live Resizing.
  • Major performance improvements and significantly reduced table markup.

Good news for TreeTable users, these are also available for TreeTable as well.

Demo

This entry was posted in PrimeFaces. Bookmark the permalink.

14 thoughts on “Resize and Scroll Enhancements

  1. Great Feature!

    (if it is not working in your browser use shift+reload to reload cached javascript)

  2. Great enhancement. This removes one of the major hurdles with working with DataTables.

    Kudos to the team.

  3. Several moths ago,in project based on primefaces, we created patch for datatable scrolling :) It resizes columns to width of data in column header or column row. Hide and show scrollbar etc.
    :)

  4. This is a huge improvement. I currently do not have locked headers in my table because of the fixed pixel limitation but I will be adding the feature once I upgrade to 3.5.

    Thank You! Thank you! Thank You!

  5. Çağatay Çivici first of all i like the new Live resizing…..but before you can rezise the columns and if the new size of the column exceeds the width size of the table an horizontal scrollbar appears ….this let us resize the column to any size…..this is not available now. This will be in future or not?

  6. Thanks for the great effort. This make me happy, will update from 3.3 to 3.5 as quick as possible.