error: 'aoPreSearchCols[...]' is null or not an object
error: 'aoPreSearchCols[...]' is null or not an object
antipotter2006
Posts: 2Questions: 0Answers: 0
I keep getting this error " error: 'aoPreSearchCols[...]' is null or not an object" when i try to apply individual column filtering for 2 tables my tables are displayed in tabs . the filtering on individual columns on the first table works fine but the individual filtering on the second table throws and error . Is there a workaround for this issue . I think it throws an exception because the second table shows up as inactive .
This discussion has been closed.
Replies
Allan
Allan
(bring this code to 1493, or can we call a common method that inits preSearchCols?)
/* There was a bug where this was being called, but for whatever reason, the aoPreSearchCols[ iColumn ] is not yet defined.
/* Add a column specific filter */
if ( typeof oSettings.aoPreSearchCols[ iColumn ] == 'undefined' ||
oSettings.aoPreSearchCols[ iColumn ] === null )
{
oSettings.aoPreSearchCols[ iColumn ] = {
"sSearch": "",
"bRegex": false,
"bSmart": true
};
}