how to filter textbox value of a row after bStateSave is true?
how to filter textbox value of a row after bStateSave is true?
search works fine but when i edit any row that load page and that's change label/string value to textbox in a row and using bstate to get back previous state of search value then problem i am getting is that value that textbox value not getting search by fnfilter, its searching other value but not that for textbox.
This discussion has been closed.
Replies
[code]
\$(document).ready(function()
{
var oTable = \$('#chart').DataTable(
{
"aoColumnDefs": [
{ "sType": "string", "aTargets": [ 10 ] }
],
"bSort": false,
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sSearch": "Search all columns:"
},
"bStateSave": true,
"fnInitComplete": function() {
var oSettings = \$('#chart').dataTable().fnSettings();
for ( var i=0 ; i0){
\$("thead input")[i].value = oSettings.aoPreSearchCols[i].sSearch;
\$("thead input")[i].className = "";
}
}
}
} );
\$("thead input").keyup( function () {
/* Filter on the column (the index) of this element */
oTable.fnFilter( this.value, \$("thead input").index(this) );
} );
[/code]
http://yadcf-showcase.appspot.com/ajax_mData_source.html