Hi,I have a datatable with live scrolling feature.The table fits fine in my development machine but the user of this app has larger screen.It would be good if the datatable fits according to the screen size.Also the height of the datatable should get adjusted with more number of rows for live scroll.Currently i have 15 rows for live scrolling.It would be good if the scroll rows increases with the height of the screen.Please help me in this regard.
For the width of the datatable, your CSS already specifying 100%. However, if it isn't fit the entire width then you need to add the "important!" at the end to override the primefaces internal CSS.
Actually, while I haven't done styling in PrimeFaces, I think that the styleClass can be used on your dataTable so that you can set the height of the entire control to say, 85% of the displayed page. Of course, I'm also not recently practiced even in vanilla HTML height control via CSS and I suspect it may be obstinate. It's usually easier to command width than height, since a web page can theoretically be infinitely long.
Sources may include data from the Fakebook Research Foundation with support from Gargle University
Men call me Jim. Women look past me to this tiny ad: