shaunhubbs
Technical User
Hi all,
I was wondering if anyone knew how to make the parent node visible after deleting a child node from a treeview. I know how to get the parent information -- whether it be the index, key or actual description, but I can't figure out from there what I should use to display the node.
The steps I used were:
1) User selects an item (node) in the treeview
2) They click a 'Delete' button which then triggers a stored procedure to delete the item from my SQL database
3) I reload the tree
4) This is where I want to reopen to the parent node. -OR- If it is easier just delete the item I just removed from the SQL database from the tree and leave the tree just the way it is eliminating the reload in Step 3.
Thanks in advance for any help.
- Shaun
I was wondering if anyone knew how to make the parent node visible after deleting a child node from a treeview. I know how to get the parent information -- whether it be the index, key or actual description, but I can't figure out from there what I should use to display the node.
The steps I used were:
1) User selects an item (node) in the treeview
2) They click a 'Delete' button which then triggers a stored procedure to delete the item from my SQL database
3) I reload the tree
4) This is where I want to reopen to the parent node. -OR- If it is easier just delete the item I just removed from the SQL database from the tree and leave the tree just the way it is eliminating the reload in Step 3.
Thanks in advance for any help.
- Shaun