createdRow function create new DOM AGAIN after datatables draw call function

createdRow function create new DOM AGAIN after datatables draw call function

JudyyyyyJudyyyyy Posts: 3Questions: 2Answers: 0

hi ~ i have a table and it have 4 tabs. ( call A tab / B tab / C tab / D tab)

and different tab have different columns. ( show or hidden)

In A tab i give <td> <sapn id="test"></sapn> for each data in createdRow function.

there is my problem.

when i go to B tab order by (call datatables draw call function) and come back A tab.

it will create NEW <sapn id="test"></sapn> again and follow OLD <sapn id="test"></sapn> and OLD one

So

NEW one create like <td><sapn id="test"></sapn></td> [again]
OLD one create like <td></td>

BUT
I need to handle something with old one.

first time ask problesm

it that clear ?

Answers

  • JudyyyyyJudyyyyy Posts: 3Questions: 2Answers: 0

    if don't change tab call datatables draw function that will be fine.

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    I'm not sure if you've resolved it with that last comment. If not, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.