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

How to use image in Grid columns

1 Answer 1469 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 19 Jun 2019, 12:41 PM

I want to make one of my grid column as image column. The header of the column as well as the data should be image.

Is there any way to achieve that. 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 20 Jun 2019, 12:08 PM
Hello, Mukesh,

This can be done by using the cell and headerCell render to render the desired images:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-cell

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-headercell

This is an example showcasing this:

https://stackblitz.com/edit/react-mgnydp?file=app/products.json

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or