Other languages block filters
Other languages block filters
When i change language filters don't work please help :)
$('#example').dataTable({
"dom": 'T<"clear">lfrtip',
"tableTools": {
"sSwfPath": "swf/copy_csv_xls_pdf.swf"
},
"processing": true,
"serverSide": true,
"ajax": {
"url": "post.php",
"type": "POST"
},
"columns": [
{"data": "kids_id"},
{"data": "kids_firstname"},
{"data": "kids_surname"},
{"data": "kids_lastname"}
],
"language": {
"url": "bg.json"
}
});
when i remove
"language": {
"url": "bg.json"
}
filter workds.
Replies
Two points:
Thanks,
Allan
Ok sorry, but can you help me.
Please link to a test case showing the issue.
http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read#latest
Sure we can help - just follow the rules I and tangerine have noted. Link to a test case showing the issue so it can be debugged.
Allan
LINK - https://gist.github.com/anonymous/e758a11fe1debc75d070
and also i have utf-8 problem when i export table to pdf.
Search for the forum file "pdf utf8" and you'll find a lot of posts on this topic. A new plug-in will be released in a few weeks time that will address this.
Thank you for the code, but if you could please link to a test page showing the issue so we can debug it, I would be happy to help.
Allan
Its simple when i add language the filters stop working
Very likely you need to initialise the filters in
initCallback
.Thank you. Now i need to save the filter value on page refresh.
stateSave
I'm using this its working, but after the refresh its not saving the filter value.
my code is same i only added:
LINK - https://gist.github.com/anonymous/3a1f3422e03f0816ac86
Please help
I also want to add custom column with buttons
Please use JSFiddle or https://live.datatables.net/ to post a working test case showing the issue so we can offer some help, as has been requested a number of times in this thread.
How to do it? I tried.
http://live.datatables.net/
Your HTML in the HTML panel, your JS in the JavaScript panel....
http://live.datatables.net/pipevoye/2/edit
http://jsfiddle.net/udkec1s1/
Your examples don't work because you haven't included references to jQuery.
Thank you all for help.
Hello,
I have exactly the same problem.
Simple adding the following piece of code break the filter functionnality:
And strangely, using direct initialization does not break filter.
I a using DataTables v1.10.8
You can find a test code here: https://jsfiddle.net/jgz0yzme/
Can you confirm this behavior please and if yes, is it a bug.
Thanks in advance for your answer.
There is no bug here. You need to use
initComplete
to execute code after the table has been initialised if you are loading asynchronous information (as you are if you uselanguage.url
).See this example.
The
language.url
documentation does have a note about this:Allan