Multiple tbody order
Multiple tbody order
My goal is to have the last row of a table used for adding new rows. I understand that sorting becomes an issue because rows cannot be excluded from the sort and that would make it difficult to keep the insert row at the bottom. One solution would be to put the insert row in the thead or tfoot but I think I would rather stay away from that.
Another thought I had was multiple tbody elements. Luckily it looks like dataTables only works with the first tbody instance. The downside is that when the sorted elements are added back, the tbody element is appended instead of being placed back into its original position. (Of course, the workaround is to use jQuery to put the tbody elements back in the desired order.)
I guess my question is is this expected behavior (in regards to only the first tbody element being used). Do I have to worry about this behavior changing in the near future? Does anybody have a suggestion for a different solution?
Thanks.
- Jason
Another thought I had was multiple tbody elements. Luckily it looks like dataTables only works with the first tbody instance. The downside is that when the sorted elements are added back, the tbody element is appended instead of being placed back into its original position. (Of course, the workaround is to use jQuery to put the tbody elements back in the desired order.)
I guess my question is is this expected behavior (in regards to only the first tbody element being used). Do I have to worry about this behavior changing in the near future? Does anybody have a suggestion for a different solution?
Thanks.
- Jason
This discussion has been closed.