Custom filtering on one column

Custom filtering on one column

RCOORCOO Posts: 1Questions: 1Answers: 0
edited May 2014 in DataTables 1.10

Hello,

I have a datatable that is made up of 4 columns.
2 of them contain buttons.

Well, the filtering feature doesn't work properly since the table contains elements of this type:

<"td style="padding: 0px; ">
<"button class="btn btn-info" style="height: 128%; border-radius: 0px">XXXYYYXXXYYY</button">
</td">

Is there a way to edit the filtering so that on column x (which contains buttons) we use the td's child html() content (in the example = XXXYYYXXXYYY)?

Thanks!

Answers

  • xmojmrxmojmr Posts: 18Questions: 2Answers: 3

    yes

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    @RCOC - I'm guessing you are using 1.9.4? There was a bug in 1.9.4 which meant that HTML tags wasn't stripped out. That is resolved in 1.10 and your search would operate as you are looking for in that version.

    Allan

This discussion has been closed.