View @{ ViewBag.Title = "Test"; } <h2>Test</h2> <script> $(document).ready(function () { $('#table').DataTable({ "serverSide": true, "searching": false, "info": false, "lengthChange": false, "ajax": "/Test/Xhr", "columns": [ { "data" : "message" } ] }); $('#table').on('draw.dt', function (e, settings) { $('#list').children().remove(); for (var index in settings.json.data) { var data = settings.jso