Grid filter custom template

Posted by: amministrazione on 23 March 2021, 12:46 am EST

    • Post Options:
    • Link

    Posted 23 March 2021, 12:46 am EST - Updated 3 October 2022, 5:12 am EST

    Hi,

    I’ve a Grid with a column with a custom template. I’m showing a red dot for some values and a green dot for the remaining values.

    Would it be possible to customize the filters in order to show the same kind of presentation ?

    Thanks,

    Claudio

  • Posted 23 March 2021, 8:35 pm EST

    Hi Claudio,

    We can customize this by handling the filterChanging event, getting the reference of the ListBox used and handling its formatItem event to customize the list.

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

    Let me know if this helps.

    Regards,

    Ashwin

  • Posted 30 March 2021, 6:48 pm EST

    Thanks Ashwin,

    it is exactly what I was looking for.

    Regards,

    Claudio

Need extra support?

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

Learn More

Forum Channels