c# - Datatables columnfilter date-range not working (undefined~undefined) value on date -
i'm having problem jquery datatables date range filtering. i'm getting (ssearch_0
= undefined~undefined
) value bootstrap datepicker. when put null
value on first column instead of type: "date-range"
, 3rd column filter working fine.
(function ($) { $(document).ready(function () { // implements datatables plugin on html table var otable = $('#transactionhistorydatatable').datatable({ "bjqueryui": true, "spaginationtype": "full_numbers", "bserverside": true, "sajaxsource": "api/sitecore/account/dataprovideraction", "bprocessing": true, "aocolumns": [ { "sname": "date", "bsortable": false }, { "sname": "name", "bsortable": false }, { "sname": "bracket", "bsortable": false }, { "sname": "activity", "bsortable": false }, ], "sdom": '<"top">tip', "olanguage": { "semptytable": "your custom message empty table" } }).columnfilter({ "aocolumns": [ { type: "date-range" }, null, { type: "select"}, null, ] }); }); })(jquery);
update
i changed code server side filtering this
"fnserverparams": function (aodata) { aodata.push({ "name": "activityparam", "value": $('#activitylist').val() }); aodata.push({ "name": "datefrom", "value": $('#datefrom').val() }); aodata.push({ "name": "dateto", "value": $('#dateto').val() }); }
the workaround i've come works jquery ui problem can't use jquery ui there other workaround?
Comments
Post a Comment