Add new row with id and specify id on each

Add new row with id and specify id on each

hunter205hunter205 Posts: 3Questions: 0Answers: 0
edited September 2012 in General
Hi all, thanks for great plug in.

I'm success in using dataTable with my code. I have problem here:
I want to add new row like this:
[code]

1


">
">






[/code]

with specify Id on and specify ID on each ?

I try to use $('.productViewDiv table').append(newRow); with newRow is String above.

It can be added, but when i press next, previous, or search, filter. it disappear? so i guess i have to use fnAddData of dataTable. but i see fnAddData just put String value into each , i want to initialize id and class for each which is just added.

So how can i do it?

Replies

  • hunter205hunter205 Posts: 3Questions: 0Answers: 0
    one more thing, how i add new row to first row. i see in this: http://datatables.net/release-datatables/examples/api/add_row.html , you can do something like this, but it doesn't work when i try to add about 100 times. newest record isn't appear in first page.
This discussion has been closed.