filtering jquery data table with FixedColumns clicking external button.plz help!!

filtering jquery data table with FixedColumns clicking external button.plz help!!

suvro84suvro84 Posts: 6Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
i have a text box and a search button .On clicking the button the data table grid with fixed column will be filtered based on the value given on the text box.I have 3 columns as fixed in my grid

i am doing like

"sAjaxSource": 'Home/AjaxHandler',
, "fnServerData": function (sSource, aoData, fnCallback) {
aoData.push({ "name": "CompanyID", "value": $("#txtId").val() });
$.getJSON(sSource, aoData, function (json) {
fnCallback(json)
});
}
It is giving error like:-
JavaScript runtime error: Unable to get property 'style' of undefined or null reference

int the below line :-
nThs[i-iCorrector].style.width = "";

in the below script of jquery.dataTables.js


/* Apply custom sizing to the cloned header */
var nThs = _fnGetUniqueThs( oSettings, nTheadClone );
iCorrector = 0;
for ( i=0 ; i

Replies

  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    As noted in the forum rules, link to a test case please.

    Allan
This discussion has been closed.