leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
545 stars 214 forks source link

Wicegrid 3.6.0.pre4 isn't working with Turbolinks 5.0.0 #313

Closed maurymmarques closed 7 years ago

maurymmarques commented 8 years ago

Download CSV files and filters are not working.

My Gemfile is like that

gem 'rails', '4.2.6'
gem 'turbolinks', '~> 5.0.0'
gem 'wice_grid', '3.6.0.pre4'

When I click on a link from the website and then try filter out something on the grid, the last action does nothing. To solve that problem I added this to my CoffeeScript file and it worked.

$ () -> 
    $(document).on "turbolinks:load", ->
        initWiceGrid()

But I could not solve another problem... When I click to export a CSV file, the report content is being loaded into the browser instead of start downloading the file.

davidwessman commented 8 years ago

No progress has been made towards Rails 5 or Turbolinks, would be great if you can look into it :+1:

Edit: With you I mean @maurymmarques

leikind commented 8 years ago

And I am not going to.

Please read the first lines of the readme file: https://github.com/leikind/wice_grid

miqs1992 commented 8 years ago

I had similar issue and I fixed it by adding similar code as @maurymmarques

$(document).on('page:change', function(){
    initWiceGrid(); 
});
kreintjes commented 7 years ago

The CSV download problem is fixed in https://github.com/leikind/wice_grid/pull/342