This is a migrated thread and some comments may be shown as answers.

Multi Filterable via Template

2 Answers 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Veteran
Andrey asked on 16 Apr 2020, 07:40 AM

Hi, Dev Team!

Here the part of my KendoGrid. Its make beautyfull green check image if value is "true", but in search panel i find original "true/false" values for choice. Can i get the same green check image also in search panel?

{
    field: "Done",
    title: "Done",
    template: function (dataItem) {
        var done = ""
        if (dataItem.Done) {
            done = '<i class="fas fa-check fa-2x" style="color: green !important;"></i>'
        }
        return done;
    },
    filterable: { multi: true }
}

2 Answers, 1 is accepted

Sort by
0
Accepted
Preslav
Telerik team
answered on 17 Apr 2020, 12:59 PM

Hi Andrey,

To modify the filter menu, I would suggest handling the filterMenuInit event - https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/filtermenuinit

In the event handler, you could modify the HTML of the elements. For example, check this test page - https://dojo.telerik.com/IJijUSUc/2

 

Regards,
Preslav
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Andrey
Top achievements
Rank 1
Veteran
answered on 22 May 2020, 03:52 PM
Yes! Thank you!
Tags
Grid
Asked by
Andrey
Top achievements
Rank 1
Veteran
Answers by
Preslav
Telerik team
Andrey
Top achievements
Rank 1
Veteran
Share this question
or