Problem with "Links"-Dropdown

Last post 06-21-2005, 10:09 AM by Adam. 5 replies.
Sort Posts: Previous Next
  •  06-14-2005, 5:03 PM 7603

    Problem with "Links"-Dropdown

    Hi,
    we are filling the "Links" Drop-Down programatically. It could happen, that there are hundret entries for the drop-down box.
     
    Problem is, that not all entries are shown. In the source-code all entries are inside. But the editor shows only some of them. The number of items that are shown differs from every time we load the editor. So there is no rule.
     
    Any ideas?
     
    Thanks
    Juergen
  •  06-14-2005, 5:18 PM 7605 in reply to 7603

    Re: Problem with "Links"-Dropdown

    Juergen,
     
    How did you populate the links Drop-Down programatically?
     
    Can you post your code here?
     
    Another solution is using the tree-view dropdown which is available in the version 4.5.
     
     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-14-2005, 6:33 PM 7610 in reply to 7605

    Re: Problem with "Links"-Dropdown

    I have a similar problem. Sometimes the information populated in drop down controls are not shown or not completly show.
     
    The version I'm using is 4.0
     
    This is the code How I'm populating them .

    CuteEditor.ToolControl toolctrl=Editor1.ToolControls["Codes"];

         
    CuteEditor.RichDropDownList rddl=(CuteEditor.RichDropDownList)toolctrl.Control;
    // Logic of connection and getting of data
     
    while
    (oDataReader2.Read())
    {
         // myTag is created here between <img>
        rddl.Items.Add(myTag, "article" + oDataReader2.GetInt32(0).ToString(), myTag);
    }


    Thanks
    AAP 
        
     
     
  •  06-15-2005, 3:05 AM 7617 in reply to 7610

    Re: Problem with "Links"-Dropdown

    Hi,
     
    this is my code:

            'Show content of folder
            Private Function leseVerzeichnisinhalt(ByRef adropdown As CuteEditor.RichDropDownList, ByVal aOrdner As String)
                Dim result As Boolean = True
                Dim verzeichnispfad As String
                Dim dateipfad As String
                verzeichnispfad = getWebpfad() & Dokupfad & aOrdner
                Dim d As DirectoryInfo = New DirectoryInfo(verzeichnispfad)
                If d.Exists Then
                    Dim d_unterliste As DirectoryInfo() = d.GetDirectories()
                    Dim d_unter As DirectoryInfo
                    For Each d_unter In d_unterliste
                        leseVerzeichnisinhalt(adropdown, aOrdner & "/" & d_unter.Name)
                    Next
                    Dim f As FileInfo() = d.GetFiles()
                    Dim datei As FileInfo
                    For Each datei In f
                        dateipfad = aOrdner & "/" & Server.UrlEncode(datei.Name)
                        adropdown.Items.Add(dateipfad, "[WZKPHTMLDOCLINK:]" & dateipfad)
                    Next
                End If
                result = False
            End Function
     
    MAIN SUB:::
            dropdown = DirectCast(Editor.ToolControls("Links").Control, CuteEditor.RichDropDownList)
            richitem = dropdown.Items(0)
            dropdown.Items.Clear()
            dropdown.Items.Add(richitem)
            leseVerzeichnisinhalt(dropdown, "")
     
    Thanks
    Juergen
  •  06-21-2005, 7:57 AM 7803 in reply to 7617

    Re: Problem with "Links"-Dropdown

    Hi Adam,
    I am looking forward of receiving any hint to my problem.
     
    Thanks
    Juergen
  •  06-21-2005, 10:09 AM 7816 in reply to 7803

    Re: Problem with "Links"-Dropdown

View as RSS news feed in XML