If you want to export grid data locally without round trip to remote server, then omit the url parameter in exportData() method.
exportData()