DataTable size

UI Components for JSF
Post Reply
dhiraj.nangare
Posts: 7
Joined: 18 Jul 2014, 11:17

18 Jul 2014, 11:28

Hi all,
I am developing one web page where I have used datatable from primeFaces to show records. I have added a functionality through which user can customize the columns of this table like if there are total fifteen columns in table but user want to see only three columns or ten columns.
So the problem I am facing in this is upto some specific column numbers table fits perfectly in whatever the space is assigned for that table but after that when I add some more columns that table goes beyond that space.

Please someone tell me how should I do this ......

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

18 Jul 2014, 12:29

You can make datatable scrollable in the horizontal: Showcase example
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests