3.2.0

Tree with CheckBox

Hi,
I am using Tree with the Checkbox as Alex provided in this following link.
/javascript.forum.20625.0/fix-missing-click-event-in.html

But I want to track the checkbox selection/unselection event. I tried using this code, but it does not work. It works only when I click either the tree sign or the item itself, but not the checkbox.

var obj = new AW.UI.Tree;
obj.setItemTemplate(new MyTreeCheckbox);
obj.onItemClicked = function(event, i){
var tmp = obj.getItemTemplate(i).getControlValue().
}

Can you please let me know if I can check if the checkbox is selected or unselected and let me know the method to perform this action. Based on this event, I need to display/hide frames on the right hand side of the page.

Thanks

VJ
November 18,
obj.onItemClicked = function(event, i){
var tmp = this.getItemValue(i);
alert(tmp)
}
November 18,
Ooh! Thanks a lot for quick response. It worked now!
VJ
November 18,

This topic is archived.

See also:


Back to support forum