Add static rows

Add static rows

andreydruzandreydruz Posts: 2Questions: 0Answers: 0
edited July 2011 in General
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.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    http://datatables.net/ref#fnDrawCallback :-)

    Allan
This discussion has been closed.