I am sending JSON data from my controller but data is not populating through ajax request

I am sending JSON data from my controller but data is not populating through ajax request

sourabh.tiwarisourabh.tiwari Posts: 1Questions: 1Answers: 0


<script src="~/Scripts/DataTables/jquery.dataTables.js" ></script>
<link rel="stylesheet" type="text/css" href="~/Content/DataTables/css/jquery.dataTables.css">

$(document).ready(function () { $('#DETAILGRID').DataTable({ "bPaginate": true, "ordering": true, "info": false, "bLengthChange": false, "bAutoWidth": true, "bFilter": true, "sScrollY": "400", "sScrollX": "100%", "iDisplayLength": 50, "scrolly": true, "processing": true, "serverSide": true, "ajax":{ "url": "@string.Format("{0}://{1}{2}", Request.Url.Scheme, Request.Url.Authority, Url.Content("~"))CHANNEL_DEFN/JSONREULT", "type": "POST", }, "ajax.dataSrc": "", "columns": [ { "data": "CHANNEL_DEFN_ID" }, { "data": "CHANNEL_DEFN_NAME" }] }); });
This discussion has been closed.