Validating the element which is opened while editing a cell


I am using dhtml grid in which a cell is editable.

Now, I would like to validate the values in the Text area which is opened while double click on the editable cell.


1. The text area should not have blank value when TAB key is pressed or Text area lose its focus.

Thanks in advance for your help.

You can use “onEditCellEvent”:


if ((stage==2)&&(newValue=="")) {//if editor is closed and newValue is empty

alert(“value is empty”);



More information about grid’s events you can find here … rid_api_ev