Hi Raney,
Please try the way below to add the links dynamically. More details please refer to http://cutesoft.net/developer+guide/scr/Links_dropdown_Customization.htm
C# Example:
- if (!IsPostBack) {
- CuteEditor.ToolControl toolctrl=Editor1.ToolControls["LinkTree"];
- if(toolctrl!=null) {
- CuteEditor.TreeDropDownList tdd=(CuteEditor.TreeDropDownList)toolctrl.Control;
-
- tdd.Items.Clear();
- CuteEditor.TreeListItem rootitem=new CuteEditor.TreeListItem("Root",null);
- rootitem.Selectable=false;
- tdd.Items.Add(rootitem);
- rootitem.Items.Add("Asp.Net","Asp.Net","http://asp.net");
- rootitem.Items.Add("DotNetNuke.Net","DotNetNuke.Net","http://DotNetNuke.com");
- rootitem.Items.Add("CuteSoft","CuteSoft","http://CuteSoft.net");
- }
- }
VB Example:
- If Not Page.IsPostBack Then
- If Not Editor1.ToolControls("LinkTree") Is Nothing Then
- Dim tdd As CuteEditor.TreeDropDownList
- Dim richitem As CuteEditor.RichListItem
- tdd = DirectCast(Editor1.ToolControls("LinkTree").Control, CuteEditor.TreeDropDownList)
-
-
- tdd.Items.Clear()
-
- Dim rootitem As CuteEditor.TreeListItem
- rootitem=new CuteEditor.TreeListItem("Root")
- rootitem.Selectable=false
- tdd.Items.Add(rootitem)
- rootitem.Items.Add("Asp.Net","Asp.Net","http:'asp.net")
- rootitem.Items.Add("DotNetNuke.Net","DotNetNuke.Net","http:'DotNetNuke.com")
- rootitem.Items.Add("CuteSoft","CuteSoft","http:'CuteSoft.net")
- End If
- End If
Regards,
Ken