How can I trap an event in a combo in a datagrid?
Hi-
I've got a combo in a datagrid and want to trap the event but am having no luck: (I'm using 2.5.1)
var items = ["X","E","S","N","NA","LOA"];
for (var j=0; j < this.rowCount; j++) {
var list = new AW.UI.List;
list.setItemText(items);
list.setItemCount(items.length);
this.dataGrid.setCellTemplate(new AW.Templates.Combo, colNo, j);
this.dataGrid.setPopupTemplate(list, colNo, j );
var cb = this.dataGrid.getCellTemplate(colNo, j);
cb.onCellChanged = this.comboClicked.bindAsEventListener(this, colNo, j);
}
this.dataGrid.refresh();
I've got a combo in a datagrid and want to trap the event but am having no luck: (I'm using 2.5.1)
var items = ["X","E","S","N","NA","LOA"];
for (var j=0; j < this.rowCount; j++) {
var list = new AW.UI.List;
list.setItemText(items);
list.setItemCount(items.length);
this.dataGrid.setCellTemplate(new AW.Templates.Combo, colNo, j);
this.dataGrid.setPopupTemplate(list, colNo, j );
var cb = this.dataGrid.getCellTemplate(colNo, j);
cb.onCellChanged = this.comboClicked.bindAsEventListener(this, colNo, j);
}
this.dataGrid.refresh();
March 12,