:: Forum >>

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
Tuesday, November 18, 2008
obj.onItemClicked = function(event, i){
var tmp = this.getItemValue(i);
alert(tmp)
}
Tuesday, November 18, 2008
Ooh! Thanks a lot for quick response. It worked now!
VJ
Tuesday, November 18, 2008

This topic is archived.


Back to support forum

Forum search