This is a migrated thread and some comments may be shown as answers.

How to identify ( edited node Or new node ) ?

0 Answers 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 16 Jan 2009, 02:12 PM
Hi Team,
    I have two tree view control . Some times from left tree view control I drag node and drop into the right side tree control . And some times I edit the text of the right side tree view control . I have  button , on click of the button I have to update ( If node is edited)  and insert( if new node is dragged from the left tree view control ) . Currenty to identify which node is edited and which node is newly added to the right side tree view control , I am changing the color ( For edited node , I am chaning the color to 'Green' and for new node , I am changing the color to 'Red'). 
             Using a for loop I am traversing through all the nodes and updating or inserting into the database based upon the color of the node . I am doing this , becuase I don't want to hit the database unnecessarily for all the nodes ( If any node is not edited ) .What I am thinking is that , this is not the best practice . Can you help me out to know , which node I have edited and which node I have added  while I am traversing through the nodes

Regards
Manoj

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Manoj
Top achievements
Rank 1
Share this question
or