Skip to content

Filter on multiple columns #13240

Closed Answered by ddaribo
Eralmidia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Eralmidia,

The first approach to consider for this scenario would be the Formatted Values Filtering Strategy feature of the Excel Style Filtering.

It allows to define a custom formatter function that is to be used for the values in the ESF filtering list. In this way you could return a string concatenating both values, as used in the cell template. However, since this function only has the bound column’s value as a parameter, some kind of mapping needs to be done to extract the other value, for example:

  public formatStringColumn(value: number) {
    let supplierId = '';
    const matchingRec = DATA.find((item) => item.ProductName === value);
    if (matchingRec) {
      supplierId =…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Eralmidia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants