If you want to export grid data locally without round trip to remote server:

Note that FileSaver supports only the modern browsers listed here: https://github.com/eligrey/FileSaver.js.