Ok.. Firefox was hanging me up. I am able to get the SelectedIndexChanged event to fire using the arrow keys and enter key on the keyboard. The DropDownList doesn't respond to mouse clicks when running under FireFox. Everything seems to function properly under IE 7. Any suggestions or fixes for FireFox?
Here is a code sample:
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server" >
protected override void OnInit(EventArgs args)
{
editor.Initializing += new EventHandler(editor_Initializing);
base.OnInit(args);
}
protected void editor_Initializing(object sender, EventArgs e)
{
AddClientDropDownList();
}
private void AddClientDropDownList()
{
DropDownList list = new DropDownList();
list.AutoPostBack = true;
list.Items.Add(new ListItem("Clients", "0"));
list.Items.Add(new ListItem("Microsoft", "1"));
list.Items.Add(new ListItem("CuteSoft", "2"));
list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);
list.CssClass = "CuteEditorDropDown";
editor.RegisterCustomButton("clients", list);
}
void list_SelectedIndexChanged(object sender, EventArgs e)
{
editor.Text = "list selected";
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CE:Editor id="editor" Width="100%" Height="600" TemplateItemList="[clients]" runat="server" ></CE:Editor>
</div>
</form>
</body>
</html>