Scroll PrimeFaces horizontally?

If I set the attribute "scrollable = true" in the PrimeFaces file, it scrolls vertically. But is it possible to scroll this table horizontally?

+5
source share
3 answers

Main surfaces support horizontal datatable scrolling. Just specify it like this:

<p:dataTable scrollable="true" scrollWidth="700">
+4
source

Try this (XY);
Panel;

<h:panelGroup id="tbl" style="width:100%;overflow:auto;">

data table;

<p:dataTable  paginatorPosition="top" scrollable="true" scrollHeight="300" style="width:100%"   resizableColumns="true"  lazy="true"  >
+1
source

try it

<p:dataTable resizableColumns="true" tableStyle="width:auto" >

Hope this helps :)

0
source

All Articles