new i18n function does not exists in jquery.datatables.js file... why?
new i18n function does not exists in jquery.datatables.js file... why?
yuricarvalho
Posts: 7Questions: 0Answers: 0
Somebody knows why the file "jquery.dataTables.js" does not have the i18n function, and the file "jquery.dataTables.min.js" has ?
I have a problema because i'm using jquery.datatables.js file e the "buttons.colvis.js" does not recognize the function i18n ...
Please, somebody help me ?
Thanks!!!
This discussion has been closed.
Replies
http://s32.postimg.org/th7b64jyb/i18n.jpg
The
i18n
method was introduced in v1.10.7. It sounds like you are using an old version of the software - 1.10.11 is the current release.Allan
Hi allan, thanks for your reply.
that's it!!! But now, i have another problem!! can you help me?
I'm using:
jquery-1.10.2.js
jquery.dataTables.js - V. 1.10.11
dataTables.fixedColumns.js - v 3.2.1
And i'm trying to create a gridview with ScrollX:
My Datatable script:
My ASPX script:
But when i display the page, my gridview does not render with 22000px, just 1300px....
Can you help me?
Image: http://s32.postimg.org/rf6jpamkj/render_gridview_incorrect.png
But, when i remove the datatable script, the gridview render with 22000px width....
Image: http://s32.postimg.org/jyr8wxuir/render_gridview_correct.png
When i was using an older Datatable.js file, the script worked fine....
Can you help me?
(sorry for my bad english....)
Thanks!
Please post a link to a test page showing the issue.
Thanks,
Allan
Thanks allan !!! :)
The files: https://drive.google.com/open?id=0B06ZSGRQItkCVDRDUTB4S2tLX1k
Mmy gridview has width="30000px" (very big!)
But....
The test page has only 1080px when i use the datatable script ?? :
http://desenv.prowebseguros.com
The first grid has the datatable script.
The second hasn't.
Its because, when DataTables creates the table it uses to determine column widths, it does so without assigning a static width to the table. You could try using
autoWidth
and setting it tofalse
to stop it doing that, but really what I would recommend is simply:in the HTML for the table you have:
Can you change that to be:
You can't have
border-collapse:collapse
with a scrolling DataTable since it makes the column width calculations impossible I'm afraid.If you want padding around the cells, then just add padding rather than setting the table width to be huge.
Allan