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 

Dragging child records to another parent

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



Joined: 05 Feb 2007
Posts: 8

PostPosted: Tue Jul 24, 2007 7:31 pm    Post subject: Dragging child records to another parent Reply with quote

Parent / Child relationships are established using a key that is common to both records. In my Dataset bound vt, I want to be able to drag a child record from one parent to another. How is the key field in the child updated to reflect the new parent? OnDrop?
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Jul 24, 2007 11:11 pm    Post subject: Reply with quote

The field in the child record that identifies the parent record is changed in the OnDrop event to the new parent value. This is done automatically for you if you set AllowDrag to true for the child row binding and AllowDropOnRow for the parent row binding. If you have a single table with a recursive relationship then set AllowDrag and AllowDropOnRow to true for the row binding.
_________________
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