3.2.0

onItemClicked issue

If i run the code below and use the new AW.UI.CheckedList, i do no see the alert from the "onItemClicked" handler. It works fine when new AW.UI.List is used.
Am i missing something?..

Thanks,
Ivan

var obj = new AW.UI.List;
//var obj = new AW.UI.CheckedList;
obj.setItemText(["Home", "Favorites", "Font size", "Search"]);
obj.setItemImage(["home", "favorites", "fontsize", "search"]);
obj.setItemCount(4);


obj.onItemClicked = function(event, index){
alert(this.getItemText(index));
}
document.write(obj);
January 5,
This is the bug in AW 2.0.1 - the click event does not fire on checkboxes because it calls refresh() on mousedown.
Alex (ActiveWidgets)
January 5,
Is this still a bug because I just purchased this software a few days ago specifically for the checkedList event functionality?
Al
February 26,
Apparently this bug still exists in 2.0.2. I had fixed the similar problem in AW.UI.Checkbox control, but the event still disappears with AW.Templates.Checkbox and AW.Templates.CheckedItem templates.

Is it possible for you to use onItemSelectedChanged() event (fires when item/selected property changes)?

obj.onItemSelectedChanged = function(value, i){
    alert(value + " " + i);
}
Alex (ActiveWidgets)
February 26,
I did get it to work using onItemSelectedChanged. Thank you very much for your time.
Al
February 26,

This topic is archived.

See also:


Back to support forum