Running DataTables on DOM
Running DataTables on DOM
kevinpunya
Posts: 3Questions: 0Answers: 0
Thanks for a great product! I ventured into this when I saw the functions it has.
I have already a table created with DOM; and I've manage to port in your DataTables into it and the theme support, sorting and searching and all is really awesome to use=)
However, I have some problems here, as I custom my table to load data directly to the table, once I added something into the table, it will sort and search without the latest record.
I tried to use the fnAddData to add them in but my custom functions done on the row and cells will be gone =/
I've checked the innerHTML and the new rows are in the table, but I can't get it to be sorted or searched on.
Any advice would be appreciated =)
I have already a table created with DOM; and I've manage to port in your DataTables into it and the theme support, sorting and searching and all is really awesome to use=)
However, I have some problems here, as I custom my table to load data directly to the table, once I added something into the table, it will sort and search without the latest record.
I tried to use the fnAddData to add them in but my custom functions done on the row and cells will be gone =/
I've checked the innerHTML and the new rows are in the table, but I can't get it to be sorted or searched on.
Any advice would be appreciated =)
This discussion has been closed.
Replies
Sounds like you need to use a delegated or live event handler: http://datatables.net/faqs#events . Also worth checking http://datatables.net/faqs#append in case that is the issue. If neither of then, then can you post a test case showing the issue please ( http://live.datatables.net ).
Allan
I'll need to tinker with the codes and find out further, the APPEND part you mentioned is what I'm facing now, if only I know how to add it like the way you add them then I can add in correctly.
I see if I can post a test case later on, I'm still fresh on this jquery thingy and I'm still learning how to use it =)
Thanks for taking time to look at this =)
I have a simple page created at http://live.datatables.net/irodom/20
It's like the page I have, running on simple DOM, but I would like to incorporate the items in the Data Table together with this; is there any advice you can give me on this case?
Thanks a bunch!
Kevin from Malaysia=)