Repeat header every "n" rows
Repeat header every "n" rows
Hello,
I'm looking for a non-intrusive way to repeat the header every "n" rows.
My table is quite complexe with a lot of informations.
In order to make it more user friendly. I want to repeat the header row let's say every 3 rows.
example :
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
Of course I don't want the header rows to be searchable or sortable etc.... I want them to be just header.
I'm looking for a non-intrusive way to repeat the header every "n" rows.
My table is quite complexe with a lot of informations.
In order to make it more user friendly. I want to repeat the header row let's say every 3 rows.
example :
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
ID|date|status|
1|1980-01-01|0|
1|1980-01-01|0|
1|1980-01-01|0|
Of course I don't want the header rows to be searchable or sortable etc.... I want them to be just header.
This discussion has been closed.
Replies
I'm desperately looking for a workaround.
Both solutions do not answer to my problem.
The first aim of what I'm trying to do is to seperate each row with a header.
I have a view detailed(fnOpen) wich is always shown and contain an other table.
So I have a person row with person's informations.
just below I have a table with all events made by this particular person-it can be hudge in term of display informations-.
What I want is below this table of events a header separator.
On one hand it will work as a header reminder.
On the other hand it will make a clear seperator in order to point out the user that he's looking the datas of an other person.
I really need multiple headers :(
[code]
//columnDefs
"render" : function(data, type, full) {
if(full.foo == 'seperator'){
// build header
}
return header;
}
[/code]
Allan
allan : Thank you a lot I wasn't aware of this feature, this solution is working perfectly.
Thank you both.