draw() method not working on multiple table

draw() method not working on multiple table

mickeyjsmickeyjs Posts: 9Questions: 3Answers: 0
edited December 2017 in Free community support

Dear Team,
I have strange situation with [table.row($(this).parents('tr')).remove().draw(); ] method it working with one of the table on the same page but not for the other
Please help
http://debug.datatables.net/oculif

Answers

  • mickeyjsmickeyjs Posts: 9Questions: 3Answers: 0

    Please see the following URL for test Case :smile:
    https://jsfiddle.net/z9dfcb57/5/

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    I'm getting a couple of JS errors in the test case. jQuery needs to be loaded before DataTables which was easy enough to fix, but then all I get is a button, and clicking on that results in BindDetailJson is not defined in the console.

    Allan

  • mickeyjsmickeyjs Posts: 9Questions: 3Answers: 0

    sorry for that allan
    Updated link : http://live.datatables.net/wecoyiqi/1/edit

    Problem is with first table when i click on हटाये button on first row design crashes.Same thing working perfectly with Second table.
    Please help !!!

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    A rowspan is not actually valid in a DataTables' tbody. It looks like that is what is causing the issue. I don't actually see how you are injecting the rowspan in?

    Allan

  • mickeyjsmickeyjs Posts: 9Questions: 3Answers: 0
    edited December 2017

    thanks for the response allan
    But how the second table is working perfectly

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    Not sure - might be random fluke. It also has a rowspan, so I'm not sure!

    Allan

This discussion has been closed.