Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 04, 2008 16:53
open dhtmlx forum
combined header for two columns

I have a grid with 7 columns and each column has its own name displayed on header.
First two columns should have one header with some name...
How to implement such setting?

Thanks
Answer posted by Support on Nov 05, 2008 03:56

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Headers_and_footers.html#grid_art_hdrftr

Multiline headers (footers) can have colspans and rowspans. There is no special API that calls for such task, the functionality is based on special cell values.
If the header cell contains:
  #cspan - the cell will be joined with the cell to the left of the current one; 
  #rspan - the cell will be joined with the cell above the current one.

For example:
  grid.setHeader("A,#cspan,B");