Board Logo

Customizable node/leaf behavior
Lonestar - 11/10/2005 at 05:34 PM

Hi, I have a tree which has multiple levels. I want to do the following:

1. When selecting a node at any level, all nodes and leaves under that node are deselected.
2. When selecting a node at any level, dynamically change the icons for the nodes and leaves under that level.
3. When a node is selected at any level, disable the ability to select any of the nodes/leaves under that node.

I have accomplished #1, I need help with #2 and #3. I'd appreciate any suggestions.

Thanks!


Lonestar - 11/10/2005 at 06:09 PM

OK, I just figured out how to do #3. Now I really just need to know how to dynamically change the icons for the nodes and leaves under the selected node.

Thanks!


rock - 11/11/2005 at 04:44 PM

It's possible to change item's icon dynamically by editing it's item scope settings:
var o_iss = o_item.a_config[2];
o_iss['i0'] = 'alter_icons/item.gif';
//etc...


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/