Why is the search box not working by default in Jquery Datatables? -
i typing in search box in attempt narrow results. when typing screen flashes trying narrow results results not change.
<script> $(document).ready(function () { var table = $('#activeprojects').datatable({ "processing": true, "serverside": true, "ajax": { "url": "../api/project/getall/", "datasrc": "" }, "columns": [ { "data": "projectname" }, { "data": "projectnumber" }, { "data": "projectmanager" }, { "data": "projectarchitect" } ] }); }); </script>
i list of data server unable search?
when using server side data, datatables won't grab data , filter on client, instead rely on server processing , send parts displayed user.
you have implement search in server side script, in case ../api/project/getall/
.
datatables sends few parameters server. parameters search[value]
, columns[i][searchable]
, filter data accordingly.
Comments
Post a Comment