I'm looking to setup an igGrid filtering column that acts similar to how a date filtering column works (with a dropdown icon) but with values that are already predetermined.
Example: A Status column with a filter dropdown that has 'Open', 'Closed', 'Cancelled', etc. No need for the full-on set of filtering options for that specific column.
Hello Daniel,
Thank you for posting into our community!
I have been looking into your question and what I could suggest is using the igFiltering feature’s customConditions option as it is used to specify custom filtering conditions as objects for a column.
Furthermore, in order to limit the displayed filtering conditions inside the filtering dialog, the conditionList option could be used as it determines which conditions to be displayed for a column.
More detailed information along with code snippets could be found in our Custom Filtering Conditions topic here.
Here could be found a small sample demonstrating this approach.
Please test it on your side and let me know if you need any further assistance regarding this matter.
Looking forward to your reply.
Sincerely, Riva Ivanova Associate Software Developer
Thanks for the response. I do like that functionality and can see where it could be useful in other situations that I have come across but I'm still looking for a bit different functionality for the column. We really want to just have a selection of items instead of that text field :)
Thank you for following up!
After further investigating this matter, I need to ask for some additional information to ensure that your question is addressed correctly.
Additionally, in case the filtering should be performed by multiple selection of values, what I could suggest is creating a custom combo editor provider for the filter cell. This is achieved by extending the igEditorProvider class and setting your own editor to filter the igGrid content.
More useful information along with code snippets could be found in our Implementing Custom Editor Provider topic here.
Additionally, a working sample illustrating how to use EditorProviderCombo to customize the filtering fields can be found here.
Please test it on your side and let me know if it is an accurate demonstration of what you are trying to achieve.