-
-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add data-export attribute #314
Comments
With the raw format that Excel uses, the decimal character is a dot. If you want to see it as a number, you need to store it as such. A comma decimal would be seen as a string. What you need to do is instruct Excel to display the number in a locale specific way. I actually don't know how to do that I'm afraid. The way I normally look into the Excel format is to create a worksheet that I want, rename the I don't believe that |
Couldn't |
You can indeed make it use something else, using the Alternatively, if you were Ajax load your data, then you could use the built in |
Datatables currently supports 4
data-*
attributes in the HTML. In this thread you thought about creating a fifth,data-export
. Is this still something on your mind? I'm willing to help, because I could use this feature.Basically, I have quite some tables to show, and always the same way. I'm using PHP to already render my tables and then applying Datatables to it. In these tables, I often have decimal numbers. In Belgium, I want to show them with a comma (for example
98522,42
). But I export it to Excel, the numbers are changed (for example to9852.242
. This might of course be an Excel thing, but I doubt my customers will be happy with that explanation :) I could easily fix it if I can display the numbers with a comma (e.g.98522,42
) and export with a dot (e.g.98522.42
).The text was updated successfully, but these errors were encountered: