show search field in grid1 based on expression

0
Hello Mendixer,   is there any way to show the search fields in a datagrid, based on a expression?   cant see a ‘based on a expression’ like in the picture below .. only the option with normal, hidden or read-only   maybe some tips for a workaround? thanks   
asked
5 answers
1

Hi Damir,

if you use the DataGrid2 widget you shouldn’t really need the grid cell styler widget anymore.

You can use the “dynamic cell class” to apply your css-classes based on conditions.

You can either create your own classes or use the bootstrap 4 classes (useful cheat sheet here)

Below an example:

 

 

answered
0

Search fields on datagrid1 do not have conditional visiblity as a property.

You could have two grids with different search fields and set different visibility on each grid.

answered
0

Or use a search widget in which you can set conditional visibility per search attribute

answered
0

thanks for the Answers, will try it.

other way would be to use a Datagrid 2 instead of a normal grid but in the Datagrid 2 is the problem with the grid cell styler widget.

 

Someone know how to get the columnname of a datagrid 2 ?  

 

answered
0

Hi Ömer,

thanks for your Answer.

is this working when the attribute is a enum?

answered