:: Forum >>

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

Wednesday, March 12, 2008
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
Thursday, March 13, 2008
Try onItemClicked or onCurrentItemChanged.
Alex (ActiveWidgets)
Thursday, March 13, 2008

This topic is archived.


Back to support forum

Forum search