Concatenate Filters for DataGrid

Hannes Kasch shared this question 7 years ago
Answered

How can I filter a datagrid based on 2 input fields (street and number) and simulate an ajax like behaviour. it works perfectly with the key pressed event on the street field, then the datagrid displays all streets meeting the criteria (first 2-3 characters), but then, when the user sees for example "street 1" and "street 2", I want to the user to be able to put in for example "1" in the number field and the datagrid should display only "street 1". is that possible?

Comments (1)

photo
1

You could refine your condition in the filter to something like this filter(dataMasterAddress, (address.name has input1) and (address.number has input1))