asp.net mvc - Issue with jQuery dataTable & columnFilter -


i'm having issue reinitializing jquery datatable when search criteria changes click of show result button.

it works fine first load & doing sorting / filtering expected if change criteria & rebuild table, giving me javascript error "'ofeatures' null or not object" when (with second load) try apply filter select/deselect checkbox.

other info:

jquery.datatables.js 1.9.4

jquery.datatables.columnfilter.js 1.5.1.

below code used generate datatable filter options after getting json result server & html getting appended #resulttable

var resulttable = $("#resulttable").datatable({     "bautowidth": false,     "bfilter": true,     "bjqueryui": false,     "osearch": { "bsmart": false },     "alengthmenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "all"]],     "idisplaylength": 50,     "aocolumns": [                    { swidth: "10px" }                  , { swidth: "200px" }                  , { swidth: "210px" }                  , { swidth: "50px" }                  , { swidth: "80px" }                  , { swidth: "80px" }                  , { swidth: "50px" }                  , { swidth: "80px" }                  , { swidth: "80px" }                  , { swidth: "80px" }                  , { swidth: "80px" }                  , { swidth: "50px" }                  ] }).columnfilter({     "splaceholder": "head:after",     "aocolumns": [                 null,                 null,                 { type: "checkbox" },                 { type: "checkbox" },                 { type: "checkbox" },                 null,                 null,                 null,                 { type: "checkbox" },                 null,                 null,                 null                ] }); 

so far:

i tried applying various options before re-loading datatable below..

 $("#resulttable").datatable().fnupdate();   $("#resulttable").datatable().fnfilterclear(); 

but no luck yet..!! :( unable trace wrong in code!, bug checkbox filter in plugin? because works select(dropdown) ..! appreciated!


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -