Datatables 1.10 + input elements + Knockout
Datatables 1.10 + input elements + Knockout
kingdave
Posts: 2Questions: 0Answers: 0
I am trying to render a table using Knockout data with input elements. I want to display some data and have the user update it in the table and have it update the view model. I have two main issues:
1) I would like to render input boxes in my table. I have seen how to do this with static tables, but not with ajax tables, other than to use the render function. Is that the right approach here?
2) If so, how can I integrate this input box with Knockout?
Here is a link to some sample code: http://live.datatables.net/sim/2/edit?js,console,output
I would really appreciate any help with this!
1) I would like to render input boxes in my table. I have seen how to do this with static tables, but not with ajax tables, other than to use the render function. Is that the right approach here?
2) If so, how can I integrate this input box with Knockout?
Here is a link to some sample code: http://live.datatables.net/sim/2/edit?js,console,output
I would really appreciate any help with this!
This discussion has been closed.
Replies
2. Possibly, but I'm afraid I would need to spend a bit of time working it out and today is a busy day! Fundamentally, I don't see why it wouldn't be possible, but I suspect it would take a fair bit of coding.
Allan
Not sure if anyone saw this, but
https://github.com/divmgl/knockout.datatables/blob/a4f02dfa5afa1d8dbb5b13978a24075a26dcafb1/knockout.datatables.js
This appears to be code that works with Knockout 3.0 and DataTables 1.10-dev