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

Customizing kendo UI angular Grid Filter buttons

1 Answer 1074 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajeev
Top achievements
Rank 1
Rajeev asked on 22 Apr 2020, 03:58 PM

Hi

Is there any way to customize the "Clear" and "Search" button texts in the kendo UI angular Grid. The water mark appearing in the search text also i need to customize. Is it possible do this in the new kendo UI angular Grid. Is there any kendoGridFilterMenuTemplate avaliable for this ?

 

Thanks in Advance

Rajeev

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 24 Apr 2020, 05:29 AM

Hi Rajeev,

The content of the Clear and Filter buttons of the Grid Filter Menu can be customized via the Grid custom messages:

https://www.telerik.com/kendo-angular-ui/components/grid/globalization/#toc-custom-messages

https://www.telerik.com/kendo-angular-ui/components/grid/api/CustomMessagesComponent/#toc-filterclearbutton

https://www.telerik.com/kendo-angular-ui/components/grid/api/CustomMessagesComponent/#toc-filterfilterbutton

Here is a runnable example demonstrating this approach in action:

https://stackblitz.com/edit/angular-d9k3sw?file=app/app.component.ts

I am not sure what is meant by "The water mark appearing in the search text", but if it is the Kendo UI - specific styling for a disabled button (the Filter button is disabled when the filter is empty), this can be done via overwriting the built-in CSS, for example:

encapsulation: ViewEncapsulation.None,
styles: [`
  .k-grid-filter-popup .k-filter-menu .k-button.k-primary {
    color: white;
    background: green;
    opacity: 1;
  }
`]

https://stackblitz.com/edit/angular-d9k3sw-zrjvgk?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
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.
Tags
Grid
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or