Unable to delete row using rowId in row().remove()

Unable to delete row using rowId in row().remove()

jLinuxjLinux Posts: 981Questions: 73Answers: 75
edited November 2015 in DataTables 1.10

I have a DT instance using a local JSON array (of objects) as the data source, and Im also using rowId to manage the rows by the ID's, as opposed to the Indexes.

When I try to use row().remove() using the correct rowId as the row-selector, it doesn't seem to work.

Example: http://live.datatables.net/xosuduho/1/edit?js,output (Just run JS and click the Action button)

I know its not an AJAX sourced table, but a string for the row-selector should still work, right?

This is driving me crazy.

This question has an accepted answers - jump to answer

Answers

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75
    Answer ✓

    row-selector ...

    To use an id selector, simply prefix the id value for the row you wish to select with a number sign: #. The value that follows is taken as the id.

    Forgot that.. >.< Sorry. Thread can be deleted

This discussion has been closed.