oSettings.aoPreSearchCols[iColumn] is undefined
oSettings.aoPreSearchCols[iColumn] is undefined
Hello All,
I am using datatables and this is my initialization code
[code]oTable = jQuery('#example').dataTable({
"sDom": 'Rlfrtip',
"bPaginate": true,
"iDisplayStart": 0,
"iDisplayLength": 100,
"iColumns": 7,
"bLengthChange": false,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": true,
"sScrollY": $('treeColumn').getSize().y -80,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "./ci_ajax/ci_get_products.php?classification_key="+classification_key+"&catalog_key="+catalog_key,
"fnDrawCallback": function() {
var aoColumns = this.fnSettings().aoColumns;
//console.log(aoColumns);
for (var i=0 ; i
I am using datatables and this is my initialization code
[code]oTable = jQuery('#example').dataTable({
"sDom": 'Rlfrtip',
"bPaginate": true,
"iDisplayStart": 0,
"iDisplayLength": 100,
"iColumns": 7,
"bLengthChange": false,
"bFilter": true,
"bSort": true,
"bInfo": true,
"bAutoWidth": true,
"sScrollY": $('treeColumn').getSize().y -80,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "./ci_ajax/ci_get_products.php?classification_key="+classification_key+"&catalog_key="+catalog_key,
"fnDrawCallback": function() {
var aoColumns = this.fnSettings().aoColumns;
//console.log(aoColumns);
for (var i=0 ; i
This discussion has been closed.
Replies
> "iColumns": 7,//changed from 6 to 7
iColumns isn't a parameter that DataTables will pick up. The fact that you have aoColumns with 2 columns in it as well suggests to me that there might be a bit of a problem with the column count.
Can you link to your page or at least run it through the debugger please? :-)
Thanks,
Allan
I removed the line iColumns and I am still getting the same error.
Can u please tell me how to use the API function fnFilterAll, I read the documentation but I could not understand how to do it.
I have made a file dataTables.fnFilterAll.js and I have included this file in my 'index.php' where I have included the jQuery.dataTables.js.
Now where should I call this function??
> I removed the line iColumns and I am still getting the same error.
Does your code have aoColumns with 2 entries in it - or did you change it for the forum here? As I say, if you could give me a link or at least use the debugger, I might be able to offer a bit more help :-)
Allan
Also I am running my code as a localhost so unfortunately i cannot provide any link.
what do u mean by 'at least use the debugger'??
Allan
Debug Code is ocebom
[code]if ( typeof oSettings.aoPreSearchCols[ iColumn ] == 'undefined' ||
oSettings.aoPreSearchCols[ iColumn ] === null )
{
oSettings.aoPreSearchCols[ iColumn ] = {
"sSearch": "",
"bRegex": false,
"bSmart": true
};
}[/code]
But now I am getting new errors
[code]oSettings is null,this.fnSettings() is null[/code]
please help any one
Allan
code is 'ufefil'
Thank u very much for u r help
Allan
oSettings is null,this.fnSettings() is null
btw new debug code is ucoqux
Also thanks for u r quick replies.........
oTable.fnFilterAll(this.value);
});[/code]
this is my fnFilterAll called after initialization of my datatable
I'm afraid beyond that I'd really need to see an example the error, since as far as I can tell it should be working.
Allan
I have the individual column filters working but the global filter is the only thing not working....
do u have any idea about this error???
[code]sVal.replace is not a function[/code]
oSettings is null
this.fnSettings is null
any idea??
Allan