Can i add Custom DropDownList control

Last post 12-17-2004, 3:57 PM by kpp. 2 replies.
Sort Posts: Previous Next
  •  12-17-2004, 12:55 PM 3084

    Can i add Custom DropDownList control

    Hi,
     
    Can i add Custom DropDownList control with my own values to CuteEditor's Toolbar.
     
    Thanks,
    KPP
  •  12-17-2004, 1:24 PM 3085 in reply to 3084

    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

  •  12-17-2004, 3:57 PM 3091 in reply to 3085

    Re: Can i add Custom DropDownList control

    Adam ,
        Thank you very much....
    kpp
View as RSS news feed in XML