hi,
this is j query list view of Crud Oration and its works well but as par this ,he shows all records ,and i need only selected records so it need to add param to this query fromdate and todate ,just trying it meany time but cant understand how to pass date param ,
please help me to solve this one
What I have tried:
jquery
$(document).ready(function () {
$('#JobTable').dataTable({
"serverSide": true,
"ajax": {
"type": "POST",
"url": "/NewJob/Getjob",
"contentType": 'application/json; charset=utf-8',
"datatype": "json",
'data': function (data) { return data = JSON.stringify(data); },
'data':'#JabDate',
"render": function (data) {
var d = new Date(data);
return d.toLocaleString()
},
'fields': [{
label: 'Customer Name',
name: 'CustomerName'
}, {
label: 'Shipper Name',
name: 'ShipperName'
}, {
label: 'Job Noumber',
name: 'Job_no'
}, {
label: 'job date ',
name: 'JabDate',
def: function () { return new Date(); },
format: "{0:DD/mm/yyyy}",
fieldInfo: 'Verbose date format',
keyInput: false
}, {
label: 'Job Type ',
name: 'JobType'
}]
},
"columns": [
{ "data": "CustomerName", "orderable": true },
{ "data": "ShipperName", "orderable": true},
{ "data": "Job_no", "orderable": true},
{ "data": "JabDate", "orderable": true},
{ "data": "JobType", "orderable": true},
],
"order": [[0, "asc"]]
});
});