Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82264

Set Max row height

$
0
0
Hello
I am using Datatables 1.9.1 and FixedColumns 2.0.2 and I am trying to set a max row height for all my cells in my tbody.
Sometimes the content of my cell is only 5 characters but sometimes it is 1000 characters and so it is on 30 lines which is not good when scrolling

So I am looking for either :
* an internal Y scroll for the cell
* something like text-overflow : ellipsis

Is there a way to do that with the core datatables or the plug ins ?

Thanks in advance for your help

Event when I don't use FixedColumns, it's not working....
var oTable = $('#tableResults').dataTable({
	"sScrollY": "300px",
        "sScrollX": "100%",
        "sScrollXInner": "150%",
        "bScrollCollapse": true,
 //    "bPaginate": false,
/*		"sDom": "frtiS",
		"bDeferRender": true,
		"oScroller": {
			"rowHeight": 20,
		},*/
	});
	new FixedColumns( oTable  
//			,{  "sHeightMatch": "auto"} 
	);	
});

Viewing all articles
Browse latest Browse all 82264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>