does Individual column searching (text inputs) works with Disabling the features ?

does Individual column searching (text inputs) works with Disabling the features ?

rahil.kazirahil.kazi Posts: 1Questions: 1Answers: 0
edited April 2015 in Free community support

Hello,
I am using Datatable in a asp.net MVC project.
I have refered to this: https://datatables.net/examples/api/multi_filter.html
but i get a error

TypeError: table.columns is not a function

whereas while script debugging got the variable table undefined.

The following is the code"

$("#sample").each(function () {
            var title = $('#example thead th').eq($(this).index()).text();
            $(this).append('<span  style="float: right;"><input type="text" placeholder="Search:"/></span>');
  });

var table = $("#sample").dataTable(
                {
                    "bLengthChange": false,
                    "info": false,
                    "ordering": false
                });''

 table.columns().every(function () {
            var that = this;

            $('input', this.header()).on('keyup change', function () {
                that
                    .search(this.value)
                    .draw();
            });
        });

This discussion has been closed.