Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swapna on Jun 04, 2008 21:14
open dhtmlx forum
regarding onchange in treegrid combo

Hi
We want a combo to be displayed in simple grid.For this we used column type as 'co'.But how to implement onchange facility for this combo.Please let us know as soon as possible.

thanks & regards,
swapna j
Answer posted by Support on Jun 05, 2008 02:13
There is no special event, but grid has global onEditCell event, which can be used for the same goal
    grid.attachEvent("onEditCell",function(stage,id,ind,old_value,new_value){
       if (stage == 2 && ind == index_of_necessary_column && old_value!=new_value ){
          //value of combo changed, any custom code can be called
       }
       return true;
    });