Grid kendo react - How to change column menu icon (The three points)

1 Answer 272 Views
Grid
Akiva
Top achievements
Rank 1
Akiva asked on 23 Jan 2023, 03:37 PM | edited on 24 Jan 2023, 12:27 PM
Hi
Grid kendo react - How to change column menu icon (The three points) ?
 

1 Answer, 1 is accepted

Sort by
0
Filip
Telerik team
answered on 25 Jan 2023, 02:28 PM

Hi, Akiva,

Currently, this can be achieved by targeting the .k-icon class with the ::before selector and passing the required icon as content:

.k-grid-column-menu.k-grid-filter .k-icon::before {
  content: 'fas fa-cloud';
  color: red;
}

For your convenience I have prepared the following example that showcases this approach:

https://stackblitz.com/edit/react-ubtbq2-eywiry?file=app/styles.css

I hope this helps.

Regards,
Filip
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Janki
Top achievements
Rank 4
Bronze
Iron
Iron
commented on 15 Nov 2023, 04:06 PM

Hi Filip!

I am trying to upgrade to Kendo 6.1 but having trouble getting this feature back to working condition (we're upgrading from v4 so lots of little details to update) - I updated the StackBlitz to latest KendoReact packages here for your convenience to show the problem: https://stackblitz.com/edit/react-ubtbq2-r8svtt?file=app%2Fstyles.css

Thank you in advance for your time!

Wissam
Telerik team
commented on 17 Nov 2023, 07:50 AM

Hi, Janki,

This is because in the R2 2023 release, we replaced font icons with SVG icons.

Currently, you can change the `columnMenu` icon or any other one by wrapping the rendered component with an `IconsContext.Provider` and setting the `value.icons` property:

For more information about migrating from font icons to SVG icons, you can check the following article:

I hope this helps.

Regards,
Wissam
Progress Telerik
Tags
Grid
Asked by
Akiva
Top achievements
Rank 1
Answers by
Filip
Telerik team
Share this question
or