Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 26, 2009 13:42
open dhtmlx forum
onBlur() of edited row on grid?

How to implement sort of onBlur() when user exiting just edited row? For example user may select another row or even move out from grid or page. I need to call some function on exiting selected and edited row.

Thanks
Answer posted by Support on Jan 27, 2009 01:44
There is no exact onBlur event but you can use

onEditCell event stage 2 occurs when user closes current active editor
onBeforeSelect event occurs when different row selected in grid

There is no event which can be used to catch the moving focus from the grid to any other element of page, but you can use next approach


    dhtmlxEvent(document.body, "click", function(){
            // any kind of code here , which must fire when focus moved out of grid
    });