search don't work

search don't work

xthekoxtheko Posts: 4Questions: 0Answers: 0
edited January 2013 in General
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??

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    edited January 2013
    Please provide a link to a test case - http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read
  • xthekoxtheko Posts: 4Questions: 0Answers: 0
    Hi Allan,
    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.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    In the example you link to, if you type "Firefox 1" there are four rows shown in the result. The last two (with "Firefox 2.0" and "Firefox 3.0") match because there is a "1" in the "Engine version" column.

    It sounds like you might want to disable search on a particular column? That can be done with bSearchable .

    Allan
This discussion has been closed.