I have a datatable which will be show all rowsLineheight: 18.
On a clickevent I call $(tableName).adjustRowHeight(‘content’);
content is the column name.
But all rows of this column will be expanded.
Is there a way to expand the column only of a specific row???
Can I revert the expandation to the maxRowHeight right before I call the adjustRowHeight???
Can I revert the expandation to the maxRowHeight right before I call the adjustRowHeight???
To revert the expandation to the maxRowHeight of only one row you need to get it from the config of the table and set it with the help of method setRowHeight:
But note if you want, for example, to revert the expandation of several rows in the table or expand several rows (using loop) it will be rather expansive operation. For this case it is be better to assign $height to all the rows you need in a loop and after that refresh the table: