Custom Filter For Specific Column

Posted by: paulr on 16 February 2021, 6:54 am EST

  • Posted 16 February 2021, 6:54 am EST

    Hi,

    On my FlexGrid, I have a column called "Oper" (short for "Operation"). On the backend, it's represented as an enum with three options: INSERT, UPDATE, DELETE.

    I would like to customize the filter for only this one column to have three options: INSERT, UPDATE, DELETE and also to remove the "Filter by Condition".



    How can I customize the filter for this specific column?

    Side note: I am doing filtering on the server/backend side.

    Thanks
  • Marked as Answer

    Replied 16 February 2021, 7:50 pm EST

    Hi Paul,

    To only display the value filter, you can set the filterType of this particular column to FilterType.Value and to display all 3 values always, you can use uniqueValues. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/angular-9-0-0-rc-1-tv9k18

    Regards,
    Ashwin
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels