Sometimes, when I click on a grid control, I receive this error:
Uncaught TypeError: Cannot read property ‘cells’ of undefined. line 87 column 33. (asFunctions.js is the title of the error).
My app is running under android.
This is an example of the grid:
I am assuming you are using the Common Grid. If you have an image in your grid it can cause the onclick event to register that cell as “undefined”. Even something as simple as <center>CLORO</center> in a cell will cause this as well. So, sometimes, depending on where you click in a cell, it will return the row and column ok, and sometimes not. When I want an image in a cell I use something like:
I did as John suggested and also as lotsofcows did. I don’t receive the error any more but sometimes I have to click 3 or more times to “catch” a valid row or column.
Not good if you have to click more than once. Look at the code/data that is in each of the cells of your grid (Grid1.getValue(row,col)). Break it down to it’s simplest by removing all html. If you have an image in a cell try putting in plain text to see if that makes a difference.