How to use DataTable @foreach values

How to use DataTable @foreach values

GurunathanGurunathan Posts: 1Questions: 1Answers: 0

I am using DataTable for my MVC project in view page I have following code

$(document).ready( function () { var table = $('#myTable').DataTable(); } );

I have attached the table code image

I added both css and script file needed for DataTable. UI is coming perfectly but typing on search box and filtering not working.
I need to add any other code or where i made mistake kindly help....

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Your foreach loop is creating multiple tbody tags. That is not valid in DataTables.

This discussion has been closed.