OK, will this actually change the links in the default LinkTree (as defined in the config file) or will this only create a new linktree. all I really want to do is change the links in the default tree, but I can't seem to do that using the following code:
....
objRead = cmd.ExecuteReader
Dim tdd As CuteEditor.TreeDropDownList
tdd = DirectCast(Editor1.ToolControls("LinkTree").Control, CuteEditor.TreeDropDownList)
tdd.Items.Clear()
While objRead.Read()
Dim rootitem As CuteEditor.TreeListItem
rootitem = New CuteEditor.TreeListItem(objRead("title").ToString, objRead("title").ToString, "~/default.aspx?pageid=" & objRead("id"))
tdd.Items.Add(rootitem)
End While
objRead.Close()
..........
I get no errors, but the links are still the default ones from the config file
P.S. I am running this code in the Editor1_Load sub