Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Jun 04, 2008 01:27
open dhtmlx forum
is there an event that does this: only if the user selects a different value from the combo(different from the previous one)something happens ....i mean instead of onedit ..... onchange ?


Answer posted by Support on Jun 04, 2008 04:29
There is no special event for such case, but you can use onEditCell, just with additional check

grid.attachEvent("onEditCell",function(stage,id,ind,oldv,newv){
    if (stage==2 && oldv!=newv)
       do_something(); // do something when new cell value not equal to old value.
    return true;
})