Hi,
I need to have background color for column headers as red instead of the default gray. I have tried code like this:
out.append("<column width=“50” type=“ed” align=“right”><![CDATA[
"+value+"
]]>");
Column headers are displayed but only the values came with background color not the whole column header. Please suggest how to set background color for whole column header.
Thanks in advance!
Its quite simple while setting columns from JS code ( third parameter of setHeader allows to define any custom styles )
In case of loading from XML ,there is no simple solution for such task, you can try to use something similar to next
in js code
grid.setHeaderColor=function(a,b){ grid.hdr.rows[1].cells[a].style.backgroundColor=b; }
in XML
…
1red
I have tried code like this:
out.append("<call command=“setHeaderColor”>1red");
but i obtain this error:
this[arr[i].getAttribute(“command”)] is undefined
and i need to change background color for part of column headers Is it in case of loading from XML possible?