Datatable column header width / scrollable Header issue

Locked
lelom
Posts: 1
Joined: 22 Oct 2015, 22:28

25 Jan 2016, 05:51

Hello Primefaces Community,

I have a PrimeFaces dataTable and I want to make its header scrollable. I tried it with the sticky header from Primefaces but unfortunately it didn't work because I have a lot of columns and I need a horizontal scrollbar. Now I have a workaround solution with the properties scrollable = "true" scrollHeight = "400". But now as you can see in the picture below, the width of the column header is different than the column width itself.

Image

I have tried many things but could not find a solution, and therefore ask for your help. Thank you in advance.

Best Regards

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

08 Feb 2016, 10:40

Please try your code after removing width:auto from your datatable. I think you can use tableStyle="width:auto". Please remove it.

kirilmicev
Posts: 2
Joined: 04 Jan 2016, 17:30

11 Mar 2016, 10:36

I have same problem with primefaces 5.0 only in chrome. In mozila works fine and in chrome header is not aligned with columns.

Datatable has scrolable, paginator, filter and columnTogle.

Ani solution?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

11 Mar 2016, 12:22

Please try with 5.3. Also, this issue isn't a Layout or Theme issue. please use primefaces core forum; http://forum.primefaces.org/viewforum.php?f=3

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests