Add static rows
Add static rows
andreydruz
Posts: 2Questions: 0Answers: 0
Hello,
I trying to add static rows to table after every 4 rows.
I need this rows to be not sortable.
I need to catch Callback and use CloseAll() and AddAll() every time sorting or paging change.
How can I do it?
[code]
function CloseAll() {
$('.dataTable tbody tr').each(function (index) {
oTable.fnClose(this);
});
}
function AddAll() {
var i = 0;
$('.dataTable tbody tr').each(function (index) {
if (i == 4) {
oTable.fnOpen(this, "Add some text", 'details');
i = 0;
}
else i = i + 1;
});
}
[/code]
Thanks,
Andery.
I trying to add static rows to table after every 4 rows.
I need this rows to be not sortable.
I need to catch Callback and use CloseAll() and AddAll() every time sorting or paging change.
How can I do it?
[code]
function CloseAll() {
$('.dataTable tbody tr').each(function (index) {
oTable.fnClose(this);
});
}
function AddAll() {
var i = 0;
$('.dataTable tbody tr').each(function (index) {
if (i == 4) {
oTable.fnOpen(this, "Add some text", 'details');
i = 0;
}
else i = i + 1;
});
}
[/code]
Thanks,
Andery.
This discussion has been closed.
Replies
Allan