I am trying to either add a custom dropdown or customize the items in the dropdown. I visisted the develoepr documentation and almost copied the code verbatum, however my custom items do not show up in the dropdown. LookupConstants.legend is a simple dictionary object. Thoughts? I am running version 6.5
CuteEditor.
ToolControl toolctrl = ceContentLegend.ToolControls["Codes"];
if (toolctrl != null)
{
CuteEditor.
RichDropDownList dropdown = (CuteEditor.RichDropDownList)toolctrl.Control;
//the first item is the caption
CuteEditor.
RichListItem richitem = dropdown.Items[0];
dropdown.Items.Clear();
foreach (KeyValuePair<string, string> pair in LookupConstants.legend)
{
dropdown.Items.Add(pair.Key, pair.Value, pair.Value);
}
}