:: Forum >> Version 2 >>

AW.Templates.Combo for changing a cellText

Hello,
I am using a AW.Templates.Combo.
I would like to change another column with the selection of a Item from the ItemList of the combo.
Trying with a UI.button all works but if I insert this code in the
onCellTextChanged – event handler I end up in an endless loop.
Could someone please help me.
This is the code I tried:

grid.onCellTextChanged = function(text, col, row){ alert("-");
grid.setCellText("test",1,row);
}


Thank in advance
Otto
Otto Atzwanger
Tuesday, September 9, 2008
To prevent a loop check the column index -
grid.onCellTextChanged = function(textcolrow){
  if (
col != 1){
    
this.setCellText("test",1,row);
  }
}
 
Alex (ActiveWidgets)
Tuesday, September 9, 2008



This topic is archived.

Back to support forum

Forum search