|
-
Mar 15th, 2003, 04:53 AM
#1
Thread Starter
Junior Member
-
Mar 15th, 2003, 05:09 AM
#2
Fanatic Member
its not petty clear but i will try out...
when u delete a node.. are u using treeview1.nodes.remove to remove it at the same thime u can add node under the respected department..... or if u have a small tree and can afford to load again.. make the database changes and refresh the tree....
-
Mar 15th, 2003, 05:17 AM
#3
Thread Starter
Junior Member
I will try and make it clearer. I have a combo box with the departments in it...the user selects a department and then all of the information from the database where the department is the one they selected is displayed in the tree.... i.e...
Master Folder 1
Master Sub Item 1
File 1
File 2
File 3
Sub Sub Item 2
Another Item 1
Another Item 2
Master Sub Item 2
etc etc etc...... (sorry for the rubbish description!)
ok so....if the user wants to delete Master Sub Item 1 but wants ALL of the other items under that folder MOVED to 'Default Department' how can i do that?
what i was going to do was to make the changes in the database and then re-load the tree, but i cant see how to loop through all of the effected treeitems to find they key for each one to change in the database??
Does any of that make sence?
Last edited by boylesw; Mar 15th, 2003 at 05:26 AM.
-
Mar 15th, 2003, 06:46 AM
#4
Fanatic Member
that database are u using.....
u mean when a parent node is deleted then all the childs content should be moved to the some 'xxx node... right
if u are using MSSQL u have "Expanding Hierarchies" which gives the childs nifo..... u n update a bit to handle ur case
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|