Adding Asp.net dropdown to toolbar

  •  07-02-2010, 6:25 AM

    Adding Asp.net dropdown to toolbar

    Hi ,
     
    I added a Asp.net dropdown control to the tool bar.
     
    The following code is used for that.
     
    CuteEditor.ToolControl subject = edtSubject.ToolControls["insertcustombutonhere"];
    if (subject != null)
    {
                    System.Web.UI.WebControls.DropDownList ddlReferenceSubject = new System.Web.UI.WebControls.DropDownList();
                   for (int intCount = 0; intCount <= 3; intCount++)
                    {
                        ListItem lst = new ListItem("Test" + intCount.ToString(), intCount.ToString());
                        ddlReferenceSubject.Items.Add(lst);
                    }
                    subject.Control.Controls.Add(ddlReferenceSubject);
     }
     
    This works fine IE , but in mozilla , if I select an item from the dropdown , it is not getting selected.
    This issue happens in mozialla
     
    When I ran the firebug and examined the properties of the dropdown,
     
    <select class="CuteEditorDropDown" 
    style="font-family: Comic sans; font-size: smaller; width: 600px;"
     
    name="ctl00$MainContent$edtSubject$ctl00$ctl22"
     unselectable="on" 
    tabindex="-1"
    >
     
    There is style as "unselectable="on" 
     
    Any thought on this..
     
View Complete Thread