-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce an input to set FilteringStrategy per column in IgxGrid #5323
Comments
Related #5448 |
@hanastasov Is there a scenario that cannot be satisfied with a |
I don't find a scenario that could not be satisfied with a |
To filter by complex object would require to override all operand, but with a filtering strategy, the operations would still execute through the operand, which means that all of them would still require to be overridden. |
Wouldn't one be able to unwrap the value from the complex object on filtering strategy level ? In such case, one would not need to override the operands as well: export class CustomFilteringStrategy extends FilteringStrategy {
protected getFieldValue(rec: object, fieldName: string): any {
return rec[fieldName]["fieldToGetValueFrom"]
}
} |
@hanastasov I guess that is right, but this can still be handled in the top-level filtering strategy provided to the grid, can't it? |
@kdinev There is no exposed way for a dev to provide a filtering strategy for the grid, but even if there is, it will work on grid level, not per column. |
@hanastasov OK, if the grid-level strategy is not exposed, then we should expose it. |
Is your feature request related to a problem? Please describe.
Currently an approach to provide custom logic for filtering per column means to make a custom filter operands that requires ALL filtering conditions to be implemented by the developer. Another approach would be to filter the underlying datasource and pass a filtered data collection as data source to the grid. Both approaches are not effective and it would be best if the developer can provide a custom filteringStrategy per column.
Describe the solution you'd like
Being able to pass a filtering strategy for a column:
Describe alternatives you've considered
Currently an approach to provide custom logic for filtering per column means to make a custom filter operands that requires ALL filtering conditions to be implemented by the developer., which makes the approach ineffective.
Another approach would be to filter the underlying datasource and pass a filtered data collection as data source to the grid.
The text was updated successfully, but these errors were encountered: