Populate DataTable with knockoutjs with edit functionality

Populate DataTable with knockoutjs with edit functionality

nageshjoshinageshjoshi Posts: 20Questions: 4Answers: 0

Hello,

I am using below link as a reference to create dataTable with knockout binding..
http://www.joshbuckley.co.uk/2011/07/knockout-js-datatable-bindings/

Here is my jsfiddle:
http://jsfiddle.net/cHr2B/4/

Timeout function describes the json object which I am getting from ajax request to REST API.

I have tried lot of things with it but to no avail.
Getting table cannot be reinitialize alert and Onject is not a function error.

Thanks

Answers

  • rhinorhino Posts: 80Questions: 2Answers: 17

    When I run the JSfiddle you linked, I don't get any errors... do you get errors on it?

    What I see is a table:

    categoryName categoryDescription
    company D
    Firm B
    Individual A
    Private Limited Company C
  • nageshjoshinageshjoshi Posts: 20Questions: 4Answers: 0

    Yes rhino..
    It is working here. But I am getting dataTable cannot be reinitialized alert on my browser.. I don't know what is wrong with it.
    Thanks

  • rhinorhino Posts: 80Questions: 2Answers: 17

    Hmm... sounds like you might be trying to call the DataTable initializer more than once, perhaps?

  • nageshjoshinageshjoshi Posts: 20Questions: 4Answers: 0

    I have checked everything, but I don't know what is wrong with my code.
    Here is my stackoverflow link where I have posted my question. I have mentioned my html code also. I think I have initialized dataTable only once.

  • rhinorhino Posts: 80Questions: 2Answers: 17
    edited July 2014

    Did you mean to link this?

  • nageshjoshinageshjoshi Posts: 20Questions: 4Answers: 0

    yes..

This discussion has been closed.