get cell excell type

Hello,

I am using pro version of dhtmlxgrid.
I have 2 questions:

There is a method in the API to set the cell excell type:
“setCellExcellType”
Is there a method to fetch the cell excell type?
something like, getCellExcellType(rowId,ColId) , which would return me one of the cell excell types(ron, ro, coro etc…)

Is there a way to find out whether a cell is currently editable or not?
something like, cellObj.isEditable()

Please help.

Thanks

  1. It possible to find out type of whole column with getColType(cInd) method
  2. You can find out this with following code:
    if (grid.editor && grid.editor.cell == grid.cells(i,j).cell )

Thanks a lot for the quick reply.

I need to find out for a particular cell rather than the entire column. :cry:
Is it not possible at all? any other way to do it?

Thanks, I will try it out.

Regards,
smokingfrog

I need to find out for a particular cell rather than the entire column.
It impossible to find out cell type if you set it with setCellExcellType() method.
But you can get cell type if you set it using “type” attribute:

var type= grid.cellById(row_id,cell_index).getAttribute(“type”);

I just needed a way to get the cell excell type. I will try this by setting and fetching the type attribute for the cell.

Thanks a lot for the quick replies.

Regards,
SF