Click To Filter a Datagrid

Richard Benson shared this question 5 years ago
Answered

Hello


I have a datagrid set up and I would like to be able to click a component like a country name and just have the entries from that country show then if i click another component the datgrid should filter again.


could you please point me in the right direction


Thanks Richard

Comments (5)

photo
1

Maybe this tutorial can help you:


http://www.justinmind.com/usernote/te...

photo
1

Ok this is my condition.


onclick


filter[ search,[attribute = selected]]


which makes everything disappear


and


filter[ search,[attribute HAS selected]]


which nothing happens


What I am trying to do is have only the selected stay on the datagrid.


e.g.


uk


usa


uk


If I click on uk then there should only be 2 instances on the grid.


ca7dad90271d84463b531b903220cd86

photo
1

Hi Richard,


The expression seems to be correct, maybe there is another action interfering with the filter. Do you mind to send us your prototype to jim.support(at)justinmind.com so we can figure out what could be happening?

photo
1

Hi Carles


Sorry about the delay.


I will send it over


The email will have "Click To Filter a Datagrid" as the subject line

photo
1

Thanks Carles


I received the email with the few changes and all is working the way it should.


Kind regards


Richard