Skip to content
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

export/copy to excel #1349

Closed
thezoggy opened this issue Dec 30, 2016 · 10 comments
Closed

export/copy to excel #1349

thezoggy opened this issue Dec 30, 2016 · 10 comments

Comments

@thezoggy
Copy link
Collaborator

noticed that on this 'grid' they have a export to excel/pdf and also a copy to excel..
http://demos.telerik.com/kendo-ui/grid/excel-export
http://demos.telerik.com/kendo-ui/grid/copy-to-excel

didnt tablesorter used to have the export feature? cant seem to find it...

@thezoggy
Copy link
Collaborator Author

looks like this was brought up under: #963
wonder if we could just serve up a copy to csv since thats just serializing the data?

@Mottie
Copy link
Owner

Mottie commented Dec 30, 2016

Hi @thezoggy!

The output widget allows you to output csv, tsv and JSON. Excel should still properly load these files.

To copy data directly to excel would require a method to select table cells. I don't have anything like that yet.

@Mottie
Copy link
Owner

Mottie commented Dec 30, 2016

I just tested it, I saved a CSV file with a .xls extension and loaded it in Excel. It thought the file was corrupt, but still allowed me to load it... everything looks good.

@thezoggy
Copy link
Collaborator Author

thanks, couldnt find that one.. also btw that page looks like its missing the page header section..
https://mottie.github.io/tablesorter/docs/example-widget-output.html

@thezoggy
Copy link
Collaborator Author

on that output widget..
i would say offer up an option to change if it includes the header/footer in the output: no header+footer, header only, none
since normally I've never seen a footer in a csv file.. and i know the header is optional..

@Mottie
Copy link
Owner

Mottie commented Dec 30, 2016

LOL thanks... there are a lot of demos missing the page header; it's hard to be consistent ;)

As for the header & footer.. there are options:

I just haven't included the options in the popup, which by the way is completely customizable.

@thezoggy
Copy link
Collaborator Author

yeah, the option is in one popup but not in the other.. no worries :)

@Mottie
Copy link
Owner

Mottie commented Dec 31, 2016

Actually, the headerRows option is set up to include all header rows, or just the last. I need to add a includeHeaders option.

@Mottie Mottie reopened this Dec 31, 2016
@Mottie Mottie closed this as completed in 0da52de Jan 2, 2017
@Mottie
Copy link
Owner

Mottie commented Jan 2, 2017

I discovered that if you set the output_separator to a tab ("\t"), open a popup and copy the contents... you can now paste directly into Excel and the data will be added into separate cells.

@thezoggy
Copy link
Collaborator Author

thezoggy commented Jan 3, 2017

nice, good to know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants