One of the most popular feature requests we get from PrimeFaces community is the horizontal scrolling for datatable to deal with many columns, before 3.0.M3 we had vertical scrolling and now we have x, y and xy scrolling;
Implementing this is quite easy, you just need to;
- Set scrollable option to true in datatable
- Provide fixed widths to your columns
- Use scrollHeight/scrollWidth in pixels to specify which type of scrolling you want
And then we deal with the complexity as usual Next step is frozen columns for horizontal scrolling but that’s planned for a future milestone.
Check out the PrimeFaces Labs to see enhanced scrolling in action.