Posts

Showing posts from June, 2019

Server Side Processing with action columnDefs For Action on Row

Script ==> <script> $(document) .ready( function() { $.fn.dataTable.ext.errMode = 'throw'; /*********Now Calling allUsers On Post *******/ var loginhistoryTable = $('#loginHistory').DataTable( { "processing" : true, "serverSide" : true, "destroy" : true, "encode" : true, "async" : false, "ordering" : true,  "searching": false, "ajax" : { "url" : "searchAllUser", "data" : function(data) { var req={ "pillar_id"('#pillar_id').val(), "state_id"('#state_id').val(), "district_id"('#district_id').val(), "policeStationCode"('#policeStationCode').val() }; data.userList=req;   return JSON.stringify(data); }, error: function (xhr, error, thrown) { }, "type" : "POST", "dataType" : "json", "beforeSend" : funct...