-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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:
Of course, the logic will depend on your specific application scenario. Alternatively, if such a mapping does not make sense for your case, another suggestion might be creating a new field for each data record whose values would concatenate the corresponding values before binding the data to the grid and simply binding that as a column on its own. Here is also a minimal sample on the Formatted Values approach. If you need any further assistance on the matter, please, let me know. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that should work, thank you. It would be great if the formatter could take in the row data as a second argument tho, to avoid finding the correct element in the data array. |
Beta Was this translation helpful? Give feedback.
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: