Re: Can i add Custom DropDownList control

  •  12-17-2004, 1:24 PM

    Re: Can i add Custom DropDownList control

    KPP,

    Yes, if you are still using the version 3.0, this is an example:


                    DropDownList tempDropDown = new DropDownList();
                    tempDropDown.Attributes.Add("OnChange","Paste_Html1('Editor1',this[this.selectedIndex].value)");
                    tempDropDown.Items.Add(new ListItem("Insert Html",""));
                    tempDropDown.ID                    = "HTML";// This ID will be used in template
                    tempDropDown.Items.Add(new ListItem("CuteSoft.net","<img src='/images/logo.gif'>"));
                    tempDropDown.Items.Add(new ListItem("Asp.Net logo","<img src='/images/aspnet.gif'>"));
                    tempDropDown.Items.Add(new ListItem("Asp.Net Link","&nbsp;<a href='http://asp.net'><h2><b>Asp.net</b></h2></a>"));
                    tempDropDown.Attributes.Add("style","width:100; margin-left:5;font:8pt Verdana;vertical-align:middle;");

                    Editor1.RegisterCustomButton(tempDropDown);

    If you are using the version 4.0, please check this link:

    http://www.cutesoft.net/example/howto/RichDropDown/cs/customize_dropdown.aspx

    You can find the sample code in the download package.


    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

View Complete Thread