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
Hey, scrolling improvements work really well.
If I might add some suggestions: horizontal scrollbar should not be visible when only(!) Y scrolling is enabled. (that’s a screen which visualise what i’am driving at: http://i49.tinypic.com/4txap1.png)
That is IE right
Yes, it should not appear.
well, screen was made in firefox 18
Fixed a couple of reported problems like this in trunk just now, would be available in tomorrow’s deployment in showcase.
Great Feature!
(if it is not working in your browser use shift+reload to reload cached javascript)
actually
ctrl + F5
Great enhancement. This removes one of the major hurdles with working with DataTables.
Kudos to the team.
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.
Great feature.
Congratulations
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!
Great work!!!
Great work – just tested the demo in ff – the resize looks a bit weird?
http://img191.imageshack.us/img191/7800/tableresize.png
Ç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?
Thanks for the great effort. This make me happy, will update from 3.3 to 3.5 as quick as possible.