Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Sep 05, 2008 07:19
open dhtmlx forum
doOnCellChanged problem

treeActivities.setOnCellChanged(doOnCellChanged);

function doOnCellChanged(rowId, cellInd, newValue)
                             {
                            
                             alert(rowId+' '+ cellInd+' '+ newValue);
                             return true;
                             }


function doOnCellChanged alerts all the items in the grid, even though I haven't touched the grid
Answer posted by Support on Sep 05, 2008 08:16
The onCellChanged event trigered when new row created, so if you attached event before data loading - it will be called for each loaded cell. 
You can attach event code only after data loading 

mygrid.loadXML(url,function(){
        treeActivities.attachEvent("onCellChanged",doOnCellChanged);
});