Lonestar
Junior Member
Posts: 2
Registered: 11/10/2005
Member Is Offline
|
| posted on 11/10/2005 at 05:34 PM |
|
|
Customizable node/leaf behavior
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
Junior Member
Posts: 2
Registered: 11/10/2005
Member Is Offline
|
| posted on 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
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 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...
|
|
|