Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 17, 2008 07:15
open dhtmlx forum
Header in dhtmlx grid

Hi,
i m using dhtmlx grid enterprise version in split mode.Following are my queries. .
1.I need set header column text vertical.Is it possible? .Can i use div in header column as we can use it in cell?.
2.How to change background color of cell?
3.How to set height of row in grid?
Plz reply asap.
Thanks
Pravin
NIS Team
Answer posted by Support on Dec 17, 2008 07:56
>>1.I need set header column text vertical.Is it possible? .Can i use div in header column as we can use it in cell?.
You can use any HTML inside header, same as for grid cells.There is no cross-browser css rule to render text vertically, but you can use image with prerendered text. 

>>2.How to change background color of cell?
You can define custom color from cell@style or cell@class attribute in XML, or set it by js code as 
            grid.setCellTextStyle(id,ind,"background-color:red;")

>>3.How to set height of row in grid?
Can be set as part of row's style
      grid.setRowTextStyle(id,"height:30px;")