Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Charlie R Chisholm on Jun 14, 2008 13:38
open dhtmlx forum
'_cellType' is null or not an object

I have created an expense form using the grid. The body (bodyg) grid is 17 rows by 11 columns. Column 9 is type 'ed', but when I try to get the content of a cell in that column using ...

var miles = bodyg.cells2(3,9).getValue();

I get ...

A Runtime Error has occured.

Line 195
Error: '_cellType' is null or not an object

This is occuring in dhtmlxGrid.js.

I don't know what to look at to fix this.

Charlie R Chisholm
Answer posted by Support on Jun 16, 2008 05:06
Such error may occur only if row in question not exist.
In which moment you are calling mentioned line? Please beware that XML loading is async process so you need to catch moment when  data loaded before calling any data related API.
    http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob

If problem still occurs for you - please send any kind of sample where issue can be reconstructed to support@dhtmlx.com