user26499135
user26499135

Reputation: 19

Datatables and yadcf Filter client side doesn't work when we have a column with checkboxes

When i have a dummy column created to host the checkboxes, the filter seems to take the wrong column as an index and therefore also the wrong value to compare, so the range number filter doesn't work.

fiddles: /1fmwoq73/9/

im' using Datatables 1.10.11 and yadcf 0.9.4, the table is client-side, for the checkbox i use the select plugin of datatables.

How can i resolve this? Did i do something wrong? (i'm new to the use of these libraries.)

Thanks.

Upvotes: 0

Views: 38

Answers (1)

user26499135
user26499135

Reputation: 19

Resolved using the "column_number_data" property to specify the real column.

yadcf.init(t, [
  {
    column_number: 1, filter_type: "text"
},
{
    column_number: 5, filter_type: "range_number", filter_delay: 500, filter_reset_button_text: false, column_number_data: "4" 
},]);

Upvotes: 1

Related Questions