HTML Content or images in Grid Hader

Dear Support Team,

I am using a grid component, I would like to diplay Html content on grid column header, is it possible?
If is is not possible, as an alternative option is it possible to display an image in the header with tooltip on it?

I see that html text is possbile with table. as attached screen shot. i need the same way with grid component.

Here is my html content.
“<a class="normal" title="Number of Containers">▭”

Thanks
Kiran.
17050190.png

Hi,

yes, you can use setHtml in Grid’s header cells. First you get the HeaderRow object from the Grid (either grid.getDefaultHeaderRow() or grid.getHeaderRow(0) if you have only one header row) and from that header row you can get the HeaderCell for each Column using the column’s id. For those HeaderCells you can use the setHtml method and add whatever HTML content you want.

-Olli