Re: add a new dropdown

  •  04-29-2008, 3:59 PM

    Re: add a new dropdown

    I added this code:

    private void AddDropDown()

    {

    ToolControl control = this.Editor1.ToolControls["Codes2"];

    if (control != null)

    {

    RichDropDownList ddGallery = new RichDropDownList(this.Editor1);

    ddGallery.Width = Unit.Pixel(120);

    //dropdown.Width = 120;

    ddGallery.Items.Add("Image Gallery", "some html");

    ddGallery.Items.Add(new RichListItem("Select"));

    control.Control.Controls.Add(ddGallery);

    }

    }
    and I went to Languages>en-us and added this:

    <resource name="Codes2">Choose A Control</resource>

    But the textbox is not showing up. Thanks!
View Complete Thread