Articles in this section
Category / Section

How to set the GenericDropDown so that it opens the popup if the user clicks anywhere in the control?

1 min read

 

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.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied