Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kovtun D on Feb 15, 2009 14:37
open dhtmlx forum
How to load a icon in attachHeader?

Hello.
My table: http://exall.ru/new/table /
In the second column (3 line - attachHeader) instead of a picture is highlighted an inscription: "img: [/table/codebase/imgs/book.gif]"
Thus in the second column (1 line - setHeader) all is normal. The picture is shown.
The picture can be loaded only in setHeader? How to load a picture in attachHeader?
Thanks.
Answer posted by dhxSupport on Feb 16, 2009 10:03

To set header image using attachHeader() method you can use the following:

mygrid.attachHeader("<img src='pic.png' />,2,3,4,5,6");

Answer posted by Kovtun D on Feb 16, 2009 13:29
Thank's a lot!