patricklindsay / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
http://wicegrid.herokuapp.com/
MIT License
33 stars 29 forks source link

Problems with csv export #68

Open dima4p opened 5 years ago

dima4p commented 5 years ago

Environment

Description of issue

  1. After I have enabled in initialize_grid the option enable_export_to_csv it turns out that the file page_white_excel.png is missing.
  2. Turbolinks are not disabled while rendering export csv.

Current behaviour

  1. the file page_white_excel.png is missing.
  2. the csv file replaces the page and only after I reload the page the browser offers me to save the file or open with office.

Expected behaviour

  1. It should be either in the gem or in "Font Awesome"
  2. the browser should offer me to save the file or open with office immediately without changing the current page. For that the button click should first disable turbolinks

Additional context

I have to use temporary it from my old projects. Additionally from there were two unneeded files requested: table.png and table-refresh.png, that were added to buttons "Filter" and "Reset". Without them there were 'routing error'

VignetteApril commented 4 years ago

I currently meet this problem either, hopefully @patricklindsay can accept the commit from @dima4p