Serverside Processing with special characters (Ex:äää)
Serverside Processing with special characters (Ex:äää)
Hi
I am using the datatables for my application, I have used server side pagination [JSP-Struts-2] , I went through different threads on the special character search issue .. still i am unable to figure it out . The regular English text search works fine .. Pls Let me know wot changes needs to be done inorder to make special character search .
Please find my code below ..
[code]
$(document).ready(function(){
oTable = $('#example').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"bServerSide": true,
"sAjaxSource": "ajaxUserSearch.action",
"bProcessing": true,
"bLengthChange": false,
"oLanguage": {
"sUrl": ''
},
"aoColumnDefs": [
{
"aTargets":[0],
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol)
{
$(nTd).css('text-align', 'center');
},
"mData": null,
"mRender": function( data, type, full) { // You can use as well if you want
//console.log(full[7]);
if(full[7]=='ACTIVE' || full[7]=='Active')
{
return ' ';
}
else{
return ' ';
}
},
}
]
});
oTable.fnSetColumnVis( 9, false );
});
[/code]
Thanks
I am using the datatables for my application, I have used server side pagination [JSP-Struts-2] , I went through different threads on the special character search issue .. still i am unable to figure it out . The regular English text search works fine .. Pls Let me know wot changes needs to be done inorder to make special character search .
Please find my code below ..
[code]
$(document).ready(function(){
oTable = $('#example').dataTable({
"bJQueryUI": true,
"bPaginate": true,
"bServerSide": true,
"sAjaxSource": "ajaxUserSearch.action",
"bProcessing": true,
"bLengthChange": false,
"oLanguage": {
"sUrl": ''
},
"aoColumnDefs": [
{
"aTargets":[0],
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol)
{
$(nTd).css('text-align', 'center');
},
"mData": null,
"mRender": function( data, type, full) { // You can use as well if you want
//console.log(full[7]);
if(full[7]=='ACTIVE' || full[7]=='Active')
{
return ' ';
}
else{
return ' ';
}
},
}
]
});
oTable.fnSetColumnVis( 9, false );
});
[/code]
Thanks
This discussion has been closed.
Replies
Allan