Textsearch in DataGrid2 over all content

0
hi there, perhaps it is a very easy question.. I need a search filter which searchs over all colums in a datagrid2. I use a textfilter but how to bind this to the attributs?   Hope it is very easy ..    
asked
5 answers
1

Hi Torsten,

You can visit to my blog, 

by clicking the link below,

https://medium.com/@rishabh.shandilya/create-your-own-way-of-filter-by-npe-non-persistant-entity-and-microflow-4ffd11e52fb0

There I have explained, how to achieve the requirement,

 

Let me know if you have any issues,

Hope it helps!!

answered
0

Hi Torsten,

 

The type of search that you are trying to achieve is called a multi-field search.  There are several marketplace modules that can be used to accomplish this.  Grid Search is the one published by Mendix.  I haven’t specifically tested it on Data grid 2 but as far as I know it should work.

 

Hope this helps,

Danny

answered
0

Hi Danny,

i hope that datagrid2 had something out of the box.

 

I used multifield in datagrid1 but changing to datagrid2 this search doesn’t work at all.

So if soneone has an idea for datagrid2 this would very helpful ;-)

answered
0

Thanks Rishabh,

this makes it clear and and very cool solution.

Of course it it more work at the beginning but very helpful in understanding

 

Thanks a lot!!!

 

Torsten

answered
0

Hi Again Torsten,

 

You are correct, I actually went through and tested all of the multifield search widgets that I normally use and none of them(including grid search) actually work for datagrid 2!

 

Rishabh’s solution should work great for you once you get everything all set up.

 

I looked into this further and realized that I had missed the original point of your question.  Which is how to make this feature actually work natively in data grid 2.  I found the answer here in the documentation: Data Grid 2 Header Filtering

 

So you configure all of your header filter attributes in the filtering tab of the datagrid 2 properties.  Then you need to place filtering widgets for each data type in the header section and they will automatically select the filter attributes that match the filter type e.g. text filter, number filter, etc.

 

Hope that helps to add clarity to your question in addition to Rishabh’s solution

 

Cheers

Danny

answered