View previous topic :: View next topic |
Author |
Message |
Steve Jensen
Joined: 10 Sep 2006 Posts: 5 Location: Portland, Oregon, US
|
Posted: Wed Sep 20, 2006 7:15 am Post subject: Collapse nodes |
|
|
If you wanted to collapse child nodes when moving to a different parent, or different node off the root, how would you do that? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Sep 21, 2006 3:36 am Post subject: |
|
|
I think I need more information on exactly what you want to do here. Do you mean when the selected row is changed you want to collapse the row? If so you could handle the SelectionChanged event and then set row.Expanded = false. _________________ Infralution Support |
|
Back to top |
|
|
Guest
|
Posted: Fri Sep 22, 2006 5:29 pm Post subject: |
|
|
OK, say your root node is a list of order numbers, and you expand order 1004 and click on one of the order lines, and say you can expand the order lines further to look at warehouse stock levels for that item in various warehouses.
At this point you have expanded the tree 3 levels including the root for order 1004. Now you click on order 1005. At that point, you want to collapse 1004 all the way back to the root, just as if you had clicked the minus sign next to each expander going back up the tree. You want to do this just by changing the active node from 1004 to 1005. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Sep 23, 2006 2:04 am Post subject: |
|
|
In that case you may want to handle the SelectionChanging event - as this is fired before the selection is actually changed - so you can collapse the currently selected item before the new item is selected. _________________ Infralution Support |
|
Back to top |
|
|
|