1

I try following code but its give error. My code:

 Dt = $('#mylist').dataTable({
            "dom": "<'row no-gutters'<'col-md-4'l><'col-md-4'r><'col-md-4'f>>t<'row no-gutters'<'col-md-4'i><'col-md-4'><'col-md-4'p>>",
            "processing": true,
            "ajax": "{{ URL::to('product/list') }}",
            "columnDefs": [
                {"orderable": false, "targets": [3, 4]},
            ],
            "order": [[0, "asc"]]
        });
1
  • 1
    Welcome to SO. Can you show us the error message you got? The more details you give, the better we can help you. Commented Apr 12, 2016 at 10:23

1 Answer 1

1

Try this:

You missed serverside : true in your code.

 oTable = $('#mylist').dataTable({
            "dom": "<'row no-gutters'<'col-md-4'l><'col-md-4'r><'col-md-4'f>>t<'row no-gutters'<'col-md-4'i><'col-md-4'><'col-md-4'p>>",
            "processing": true,
            "serverSide": true,
            "ajax": "{{ URL('product/list') }}",
            "columnDefs": [
                {"orderable": false, "targets": [3, 4]},
            ],
            "order": [[0, "asc"]]
        });
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.