Showing row details as default in dataTables
Showing row details as default in dataTables
adromil
Posts: 53Questions: 4Answers: 0
Hi All,
I just want to query if there is a way to display row details as shown in DataTables hidden row details example -where it expands the table row details- which I wanted to display on table load, instead of hiding it.
Thanks.
I just want to query if there is a way to display row details as shown in DataTables hidden row details example -where it expands the table row details- which I wanted to display on table load, instead of hiding it.
Thanks.
This discussion has been closed.
Replies
Allan
Very well appreciated.
I have an additional query for on this.
Can I make the class same as its parents tr class and will also reflect or dynamically changed when sorted.
I added [code]nTr.className[/code] on the generated TR element on fOpen but it is static and does not conform on the tr class where it is referenced.
Thanks.
my fOpen Code goes like this
[code]
var nTr;
var tn = oTable.fnSettings().fnRecordsTotal();
if(tn>0){
for(var n=0; n
[code]
"fnDrawCallback": function( oSettings ) {
var theTR;
var tRows = oSettings.fnRecordsTotal();
var detailsTR;
if(tRows>0){
for(var i=0; i