-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Hi,
More of a question than an issue perhaps,
but I'm working with a ui-grid where we want filtering on as a default with the default filtering to be contains (This was an easy fix, maybe something that could be configurable in the future?).
The problem we are currently facing are cellFilters defined on the grid with underlying Id's,
causing the filtering to be applied to the underlying value and not the displayed value.
This can be illustrated by enabling filtering on
201 - Edit feature
as in this plunker http://plnkr.co/edit/KnlHaCJX7aFvIINREkRq
where it is only possible to filter on 1 / 2, not male or female
I've currently solved this with a perhaps naive approach, and added a piece of code in the runColumnFilter-function that overwrites the entered value with a $eval'd value using the filter,
requiring the $filter-service in the appScope.
This naturally felt right quite a hack, so I'm wondering if there is any easier solution that I've overlooked,
or if this is something that could be considered as a future feature?
Br
/ Petter