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

[Solved] How to save changes made to Tree View

1 Answer 255 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Chinna
Top achievements
Rank 1
Chinna asked on 28 Apr 2008, 02:22 PM
hi,
     I want to save changes made to treeview to database after adding/deleting/rearranging nodes.

I tried to loop through the XML which i got from TreeView.GetXml();

This is the XML i got :

<Tree>
<Node Text=\"Hierarchy1\" Value=\"100269\" Expanded=\"True\">
 <Node Text=\"ChildHierarchy1\" Value=\"100270\" Selected=\"True\" Expanded=\"True\">
  <Node Text=\"UNITED ARAB EMIRATES\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
  <Node Text=\"UNITED KINGDOM\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
  <Node Text=\"UNITED STATES OF AMERICA\" Value=\"1136\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\" />
 </Node>
</Node>
<Node Text=\"BIG ROOT - Cambridge\" Value=\"1\">
<Node Text=\"UNITED STATES OF AMERICA\" Value=\"1139\" ImageUrl=\"../Images/ic_connect.gif\" Category=\"Country\">
<Node Text=\"CALIFORNIA\" Value=\"1522938\" Category=\"State\">
<Node Text=\"BURBANK\" Value=\"1572835\" Category=\"City\" />
<Node Text=\"SAN DIEGO\" Value=\"1572835\" Category=\"City\" />
</Node></Node></Node>
</Tree>"

From this XML string i want to update the database.

1 Answer, 1 is accepted

Sort by
0
Chinna
Top achievements
Rank 1
answered on 28 Apr 2008, 02:24 PM
Also i went through some post on this forum using GetAllNodes() which returns a ArrayList but i am not able to loop through the Array List.


Quick help on this will be appreciated.
Tags
TreeView
Asked by
Chinna
Top achievements
Rank 1
Answers by
Chinna
Top achievements
Rank 1
Share this question
or