Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ashwin Hiregowdar on May 12, 2009 04:34
open dhtmlx forum
DHTMLX Grid

A cell in a grid is of type "txt" (Text area).After entering some data in the cell and tab out,ctrl is undefined in detectkeypress.And also in the process of filling the data in the cell and tab out,that value in the cell is not captured.How do we solve this?
Answer posted by dhxSupport on May 12, 2009 06:34
>>A cell in a grid is of type "txt" (Text area).After entering some data in the cell and tab out,ctrl is undefined in detectkeypress
Please descripbe what do you mean under "detectkeypress"? Do you what to capture ctrl click using "onKeyPress" event?
>>And also in the process of filling the data in the cell and tab out,that value in the cell is not captured
To capture value which was entered to the cell you use "onEditCell" event:

mygrid.attachEvent("onEditCell",function(stage,rowId,cellIndex,newValue,oldValue){
if (stage==2){//if editor was closed
alert(newValue);

return true;

}

return true;

})