Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35808

add/edit/delete on dataTables.

$
0
0

Hello,

I am working on dataTables from last 15days. I have posted 2,3 questions but didn't get any response.

Let me brief you about my application: I am making one web-service in php with the help of knockoutjs and some other libraries. Now, I have exposed api for each application which provides me the array of json objects. I want to implement the dataTable for that data(which I am getting by sending ajax get request to respective api url). Also, I want to add/edit/delete that data without refreshing the page. I am using knockout to achieve this purpose. But unable to use knockout observable array with dataTables properly.

Can anybody please guide me through this?

I have mentioned my json response from ajax get request and method with which I am loading that data to knockout observable array. Please let me know if I am missing some parameters from my json response.

{"sEcho":"1","iTotalRecords":3,"iTotalDisplayRecords":3,"aaData":[{"cat_clientId":"000","categoryId":"333","categoryName":"INDIVIDUAL","categoryDescription":"","cat_last_activity":"01\/08\/2014 12:54:11 admin"},{"cat_clientId":"000","categoryId":"334","categoryName":"FIRM","categoryDescription":"","cat_last_activity":"01\/08\/2014 14:04:28 admin"},{"cat_clientId":"000","categoryId":"335","categoryName":"PRIVATE LIMITED COMPANY","categoryDescription":"","cat_last_activity":"01\/08\/2014 13:03:42 admin"}]}

http://jsfiddle.net/43huY/


Viewing all articles
Browse latest Browse all 35808

Trending Articles