Giter Site home page Giter Site logo

Comments (4)

leikind avatar leikind commented on September 2, 2024

I don't understand why you have 4 dropdown, and what your selection_kinds are. If you could explain your data model that would help.

from wice_grid.

webrups avatar webrups commented on September 2, 2024

a selection belongs to a selection_kind.
in the selection table: I have the name for the selection, the id and the selection_kind_id
so I can group the selections by selection_kind_id

so I want 4 dropdowns. each dropdown displays the selection names for his own selection_kind.

and I want to filter on those combined.

but currently only the first dropdown works. the other 3 has no effect. I think because the id fo those for dowpdown filters is exactly the same (browser inspect html)

and that is caused by the attribute_id and the assoc. they are all 4 the same. but the custom filters make it uniq. with works for showing the correct items in the dropdown.


so in my opinion the solution is simple:
If I can make the generated id for the html unique the problem is solved.
But there is no option in wicegrid to change that.

from wice_grid.

webrups avatar webrups commented on September 2, 2024

so I get the correct values into the 4 dropdowns because the custom filters is doing his job.
but because the id is the same for all the 4 dropdowns in the html. only the first 1 works.

from wice_grid.

leikind avatar leikind commented on September 2, 2024

You should be using 1 dropdown with multiple election: https://github.com/leikind/wice_grid#multiple-selection

Otherwise how do you imagine 4 filters using the same field and the plugin magically figuring out that these 4 options should be unified with OR in the final SQL statement?

from wice_grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.