Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by j.lagos on Apr 24, 2009 02:08
open dhtmlx forum
How to get cell type

I need to know the cell type in a onEditCell event.

I know, there is the getColType, but it is not convenient since some cells have not the same type as the Column.

Example:

<head>
<column width="*" type="co" align="left" sort="na">
....</head>

<row id="fdate"><cell>Date</cell>
<cell type="dhxCalendarA">2009-0-02</cell></row>
...

I was expecting to find in Grid API something like ...getCellExcellType.

Is there an alternative method as to difference between the cells?

Thanks in advance,
JL
Answer posted by Support on Apr 24, 2009 04:20
There is no separate API call, you can try to use the next code 

var type = grid.cells(i,j).cell._cellType||grid.getColType(j);

where i,j - row ID and column index


Answer posted by j.lagos on Apr 24, 2009 04:29

 

The   grid.cells(i,j).cell._cellType is working fine.

 

Thank you