search don't work
search don't work
Hi i have this sample code:
[code]
$('#datatable-test').dataTable({
"aoColumns": [
{ "mDataProp": "Name" },
{ "mDataProp": "Date" },
{ "mDataProp": "xx" },
{ "mDataProp": "yy" },
{ "mDataProp": "zzz" },
],
"sAjaxSource": "/getdata",
"bProcessing": true,
"bRetrieve":true,
"sAjaxDataProp": "xdata",
"bAutoWidth": false,
"sDom": '"H"lTfrtip',
"oTableTools": {
"sSwfPath": "/js/tabletools/swf/copy_csv_xls.swf",
"aButtons": [{
"sExtends": "csv",
"sFieldSeperator": ";"
}]
},
"bJQueryUI": true
});[/code]
when i have in column one something like this:
First Text 1
First Text 2
when i'm searching for First Text 1 i get all rows
but i went only rows with First Text 1
whats the problem here??
[code]
$('#datatable-test').dataTable({
"aoColumns": [
{ "mDataProp": "Name" },
{ "mDataProp": "Date" },
{ "mDataProp": "xx" },
{ "mDataProp": "yy" },
{ "mDataProp": "zzz" },
],
"sAjaxSource": "/getdata",
"bProcessing": true,
"bRetrieve":true,
"sAjaxDataProp": "xdata",
"bAutoWidth": false,
"sDom": '"H"lTfrtip',
"oTableTools": {
"sSwfPath": "/js/tabletools/swf/copy_csv_xls.swf",
"aButtons": [{
"sExtends": "csv",
"sFieldSeperator": ";"
}]
},
"bJQueryUI": true
});[/code]
when i have in column one something like this:
First Text 1
First Text 2
when i'm searching for First Text 1 i get all rows
but i went only rows with First Text 1
whats the problem here??
This discussion has been closed.
Replies
i will try to make a test case for it but the same is also here:
http://www.datatables.net/examples/data_sources/ajax.html when i type Firefox 1 there are also rows with Firefox 2 i think its the same problem what i have.
It sounds like you might want to disable search on a particular column? That can be done with bSearchable .
Allan