Datatables with KnockoutJS do behave weird.
Datatables with KnockoutJS do behave weird.
Hello there,
first of all thank you for this awesome plugin.
I am quick-starting datatables and knockoutjs, ive read a lot about it, but still i can't make them work properly.
Basically this is what i'm doing
- i create the row template in html code, with KO foreach
- i make very basic column configuration and then i draw the table
so that any row is bound with an item from an observable array.
Problems occurr when
- i add a new element in the bound item
- i remove an element from the bound array
What's happening here is that rows are properly added and removed, but
in the very same moment i do add/remove them, the search field disappears
and columns are not clickable (for sorting) anymore.
If it's ok to you, i would like to link the stackoverflow question i recently opened, there are all details and code.
http://stackoverflow.com/questions/19469865/knockoutjs-with-jquery-datatables-bound-rows-are-not-updated-properly
Thank you
first of all thank you for this awesome plugin.
I am quick-starting datatables and knockoutjs, ive read a lot about it, but still i can't make them work properly.
Basically this is what i'm doing
- i create the row template in html code, with KO foreach
- i make very basic column configuration and then i draw the table
so that any row is bound with an item from an observable array.
Problems occurr when
- i add a new element in the bound item
- i remove an element from the bound array
What's happening here is that rows are properly added and removed, but
in the very same moment i do add/remove them, the search field disappears
and columns are not clickable (for sorting) anymore.
If it's ok to you, i would like to link the stackoverflow question i recently opened, there are all details and code.
http://stackoverflow.com/questions/19469865/knockoutjs-with-jquery-datatables-bound-rows-are-not-updated-properly
Thank you
This discussion has been closed.
Replies
Allan
hasn't 1.10 been released yet, isn't it?
Any workaround you can suggest to be used in 1.9, like for instance table destroy-rebuild?
I don't see any way it can be made to work in 1.9.4 since 1.9- copies the source data objects.
Allan