Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Binod Pant on Mar 11, 2008 10:08
open dhtmlx forum
Use of icons in multi row headers (how to make it work with attachHeader?)

Hi:

I have been trying to use icons in my headers. The setHeader() or <column> tag approach works, but when I add additional rows in the header with attachHeader, and try to use img:[path] inside these header cells, it does not work.

Is this is limitation, or am I doing something wrong?

for example:
<call command="attachHeader"><param>#rspan,text,#cspan,img:[../images/arrow_up.gif]text</param></call>

this did not work

but
<column width="220" type="tree" align="left" color="#eeeeee" sort="none">img:[../images/arrow_up.gif]Metrics</column>
worked

Thanks,
Binod
Answer posted by Support on Mar 12, 2008 07:39
There is no opportunity to use such a way of setting images in case of attachHeader.

You should use html to set image there:

<call command="attachHeader"><param><![CDATA[#rspan,text,#cspan,<img src="../images/arrow_up.gif">text]]></param></call>