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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -