I am using YUI TreeView with checkbox. I cannot use YUI3 CheckboxTree as the system is a little old and we use YUI 2.9. I followed the example YUI TreeView with checknox. Basically I created a widget that extends YUI TreeView. I am able to get the checkboxes on my nodes and am able to check them, but the nodes do not expand.
My guess is that the problem can be with the following statement:
this.subscribe('clickEvent',this.onEventToggleHighlight);
I tried defining my own onEventToggleHighlight as follows:
onEventToggleHighlight: function(oArgs) {
var node = oArgs.node;
node.hightlight();
node.focus();
node.toggle();
return false;
}
After doing this, I am able to expand the nodes, but checkboxes stop working. Kindly suggest where I am going wrong. I have set the propagateHighlightUp
and propagateHighlightDown
node properties to true as well. TIA.