简体   繁体   中英

How to Fix Primefaces Datatable column width and implement inner cell scroll

I'm using Primefaces(Version 3.5) DataTable to display certain data.
How do I make only one CELL scrollable if its data exceeds than other cells in same row.?By keeping Column Width fixed[ I could not fix the Column width also ].
Here is the Screen Shot:

在此处输入图片说明

Please Suggest any best approach to achieve this, may by truncating data and adding ... at end. But again I can not fix the width of column.

There is css for this:

.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td {
    white-space: nowrap;
}

change it to normal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM