3.2.0

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();

March 12,
OK, so I CAN get onCellChanged to fire (made the cell editable) but the issue is now that the event fires only AFTER the mouse is moved from the dropdown control. Is there any event that will be immediate?
many thanks
Max
Max
March 13,
Try onItemClicked or onCurrentItemChanged.
Alex (ActiveWidgets)
March 13,

This topic is archived.

See also:


Back to support forum