Keep DataTable but repaginate after repopulating DataTable
Keep DataTable but repaginate after repopulating DataTable
WebDev
Posts: 21Questions: 0Answers: 0
Okay, this is at least my third question. I am using the DataTable plugin to great effect on a project I am working on but we need it to do what it does plus several more things. On certain actions we need to keep the DataTable right where it is but empty its data rows (the ones in the TBODY) and put new rows in. Now, this part is actually working but once it plugs in all the new rows it shows *all* of those rows and doesn't then break them into pages. Is there a way to then just call the paginating action?
This discussion has been closed.
Replies
It creates the DataTable then empties the TBODY (not sure if I'm doing this part exactly right, I'd like it to end up as , but I think it's right), then adds new rows of content, but doesn't re-paginate after the new rows are added in. Is there a way to then just call the paginating action?
More current link: http://live.datatables.net/itaven/7/edit
Allan
http://live.datatables.net/itaven/10/edit
Only problem is, when it redraws the table it uses the old data rather than the new data. Is there a way to retain the new data?
http://live.datatables.net/itaven/11/edit
http://live.datatables.net/itaven/12/edit