Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery datatable passing of parameters

  dataTable = $("#Table").dataTable({
                    "sAjaxSource": '@Url.Action("MethodName", "COntrollerName")',
                    "fnServerParams": function (aoData) {
                        aoData.push(
                            { "name": "cCode", "value": "value" },
                            { "name": "bCode", "value": $("#MC_BranchCode").val() },
                            { "name": "ConvertedtoConsol", "value": $("input[type='radio']:checked").val() }
                        );
                    },
                    "bServerSide": true,
                    "stateSave": true,
                   // "select" : 'multi',
                    "bProcessing": true,
                    "scrollX": true,
                    "searching": false,
                    "order": [[1, 'asc']],
Source by edwindeloso.com #
 
PREVIOUS NEXT
Tagged: #jquery #datatable #passing #parameters
ADD COMMENT
Topic
Name
1+9 =