Questions tagged [wice-grid]

A Rails grid plugin that allows the programmer to define the contents of a cell by himself, just like one does when rendering a collection via a simple table.

WiceGrid is a Rails grid plugin.

One of the goals of this plugin was to allow the programmer to define the contents of the cell by himself, just like one does when rendering a collection via a simple table (and this is what differentiates WiceGrid from various scaffolding solutions), but automate implementation of filters, ordering, paginations, CSV export, and so on. Ruby blocks provide an elegant means for this.

37 questions
5
votes
1 answer

How to Enable `raise_on_unfiltered_parameters` to respect parameter filtering while using wice_grid gem for rails 5

First, I do know that wice_grid gem is not supporting rails 5 as of now. So, there are issues already flowing around the web. But now I can't go back as I am in the middle of my web app development. Issue: I want a simple datagrid having filter…
Priyesh Doshi
  • 320
  • 3
  • 13
5
votes
1 answer

Multiple links in a column using wice_grid Ruby On Rails

How to add multiple links to a column in wice_grid g.column do |task| link_to('Edit', edit_task_path(task)) link_to('Show', task_path(task)) end Only a link is shown, other link is not even shown. Rails version 4.0.2
xydev
  • 3,409
  • 5
  • 34
  • 54
4
votes
1 answer

WiceGrid default filter on column

I am using the WiceGrid gem (which is awesome!), however I am stuck on something relatively simple and can't seem to find anything in the documentation. I want to have a default filter on a column. eg. A boolean column defined can have filtering…
Andrew Cetinic
  • 2,805
  • 29
  • 44
2
votes
1 answer

Rails and WiceGrid : HTML escape

I would know if it is possible to do something like this with a Rails wice grid plugin:
2
votes
1 answer

Rails wice_grid with virtual class attributes

I need to show a virtual attribute :status in my wicegrid but I always get the error that :status is not in the database .... of course its not, its virtual ! Is there a way to have a column containing a virtual attribute? and if Yes, how can I…
Mik
  • 1,705
  • 1
  • 14
  • 26
1
vote
1 answer

wice_grid grid locks after first filtering

I am using wice_grid and trying to get filtering to work. #[controller].rb def queue @grid = initialize_grid(Indication) end #view <%= grid(@grid) do |g| g.column name: "id", attribute: "id" do |t| t.id end end %> Together, these make the table…
Phil Brockman
  • 310
  • 3
  • 17
1
vote
0 answers

"wrong number of arguments" after updating to Rails 5

I use the wice_grid gem with the code below. This worked with Rails 4.2.6 but after updating to Rails 5.0.0 it gives the error "wrong number of arguments (given 0, expected 1)". Anyone got an idea how to solve this? <%= grid(@acodes_grid,…
Marty
  • 2,132
  • 4
  • 21
  • 47
1
vote
1 answer

Rails : Extra column when using wice_grid

I am using wice_grid in my RoR application. When I add attribute: to one of the columns, I see an extra column in the grid at the end with two icons that look like a funnel and calendar, which do nothing. What is the column and the icons for? Or is…
user1575148
  • 561
  • 6
  • 28
1
vote
1 answer

Capable of hosting filter related icons in Wice grid error

I am trying to find a resource in solving this issue. I am using the wice grid gem for my project and I encounter this error undefined method capable_of_hosting_filter_related_icons?' for nil:NilClass. Below is my view: -grid(@vendors_grid) do |g| …
1
vote
1 answer

How to customize pagination in wice_grid gem?

I have a pagination like: « First ‹ Prev 1 2 ... 13 14 15 16 17 18 19 20 21 ... 24 25 Next › Last » This is too long. How can I make this shorter, e.g.: « ‹ 15 16 17 18 19 › »
jjjfff
  • 99
  • 6
1
vote
1 answer

Sorting error when associated table

I have a sorting problem with using the gem wice_grid. I have a table/grid for sent messages and it contains various columns. In the messages controller: def index @messages_grid = initialize_grid( Message, …
Nick
  • 3,496
  • 7
  • 42
  • 96
1
vote
1 answer

WiceGrid Calendar assets icons

Time filter icons are not appearing on the production server when the code is deployed. Broken images appear instead, I get assets compilation error .
Wasim
  • 61
  • 1
  • 2
  • 8
1
vote
1 answer

wice_grid add row dynamically

I want to create a "details" row dynamically like below: I'd like to be able to toggle details for every item on the grid. Can you advise how I can achieve this functionality? I'm using rails 4 with wice_grid gem
Extrapolator
  • 774
  • 1
  • 8
  • 13
1
vote
2 answers

How to manage the path to a template

In my view directory I have two subdirectory master/hotels and cruds. In cruds I have several files(new, index, edit, show). master only has index file. Now I set "index" in cruds as root and I can link directory to "new" by add this path in a…
dailammoc
  • 144
  • 2
  • 9
1
vote
2 answers

Filter index for CanCan

I am trying to filter the index according to the ability. I am using the wice_grid gem to make a table in the index, and to add a condition to tickets, we could use something called :conditions. I have tried to put it like that: @tickets_grid =…
Mostafa Hussein
  • 11,063
  • 3
  • 36
  • 61
1
2 3