How to set the GenericDropDown so that it opens the popup if the user clicks anywhere in the control?
You can display the popup on clicking anywhere in the GenericDropDown by using the following code snippet:
protected void Page_Load(object sender, EventArgs e)
{
this.GenericDropDown1.Attributes.Add("onclick", "Mygeneric.ShowPopup();");
}
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Me.GenericDropDown1.Attributes.Add("onclick", "Mygeneric.ShowPopup();")
End Sub
Here GenericDropDown1 is the ID of the GenericDropDown control and Mygeneric is the ClientObjectID of the GenericDropDown control.