Set Max row height
Set Max row height

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....
[code]
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"}
);
});
[/code]
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....
[code]
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"}
);
});
[/code]
This discussion has been closed.
Replies