Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Collapse nodes

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
Steve Jensen



Joined: 10 Sep 2006
Posts: 5
Location: Portland, Oregon, US

PostPosted: Wed Sep 20, 2006 7:15 am    Post subject: Collapse nodes Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Thu Sep 21, 2006 3:36 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Fri Sep 22, 2006 5:29 pm    Post subject: Reply with quote

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

PostPosted: Sat Sep 23, 2006 2:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group