Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nancy on May 07, 2008 08:23
open dhtmlx forum
Divide Cell Data

Hi,

I need to divide cell data into two parts. Below is the example

Name | Age | Remarks

A | 20|25 | EX

B | 32|54 | G

In the column header Age is only one column. But in the Data it has to be split as two cells within the same cell. Is it possible to achieve this functionality . Please reply
Answer posted by Support on May 07, 2008 09:34
This can be done by using colspan in grid header

    grid.setHeader("Name,Age,#cspan,Remarks");

As result grid with 4 columns will be created, but header will show only 3 labels ( the same will work for init from XML - just use #cspan as column tag value )