jimirayyng
Member
Hi, This is my first post, please be gentle....
I Have a treeview that has its nodes populated by clicking on a row in a grid, i keep stuff like the record key in the node.tags and build the node text from the fields in the record (I obtained the data from the db earlier). Any amount of nodes and sub nodes can be added. i use recursive functions to save the tree and reload it all this is working fine. Ok, on to my question.
I would like to stop duplicate nodes on the same branch(ie nodes with the same text) being added. duplicates can only be legall if added on a different branch.
I thought about using the .Fullpath attribute and seaching for duplicates, but am not sure if there is an easier more elegant way than this.
I dont expect a complete solution, just a few pointers(no pun intended)
Many Thanks,
JRY
ps great forum !!!
I Have a treeview that has its nodes populated by clicking on a row in a grid, i keep stuff like the record key in the node.tags and build the node text from the fields in the record (I obtained the data from the db earlier). Any amount of nodes and sub nodes can be added. i use recursive functions to save the tree and reload it all this is working fine. Ok, on to my question.
I would like to stop duplicate nodes on the same branch(ie nodes with the same text) being added. duplicates can only be legall if added on a different branch.
I thought about using the .Fullpath attribute and seaching for duplicates, but am not sure if there is an easier more elegant way than this.
I dont expect a complete solution, just a few pointers(no pun intended)
Many Thanks,
JRY
ps great forum !!!