Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jet Loui on Sep 13, 2007 19:07
open dhtmlx forum
Column Image

Hi,

Is there a way to attach an image in the same line with the column header of the grid? I am trying to insert a mechanism that when this image in the column is clicked some action happens. I want to be able to attach two images. when one of the image is clicked sorting occurs and when another image is clicked some other action occurs.

I am looking for a way to attach these two images in teh column header in the same row.

Please, let me know how I can accomplish this.
Thanks,
Jet
Answer posted by Stanislav on Sep 18, 2007 17:20
Actually text which you set as header titles can include HTML so you can put any complex content in header, for example

instead of

grid.setHeader("A,B,C");

use

grid.setHeader("A,B<img src='some' onclick='some'/>,C");