Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cheryl Tisland on Oct 06, 2009 11:06
open dhtmlx forum
selectCell clearing value out of my cell

Hi, I have a function that fills in certain cells in my grid. It works great. However, the last line of the function is to use selectCell to make one of the cells editable. When this line is called, the value that was in that cell get blanked out.

I have looked at every knowledge base entry regarding the selectCell function and it seems like I am doing it correctly. I have tried with many variations of true, false, true, false, etc. after the row and cell parameters and none make a difference.

mygrid.selectRow(0);
mygrid.selectCell(0,4);

Answer posted by dhxSupport on Oct 07, 2009 06:35
selectCell() method doesn't affect on the cell's values. When you are opening cell to edit cell's object getValue() method is called and returns necessary value which will be displayed at the cell's editor. If you are using custom eXcell type cell's getValue() method may return incorrect value.