Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
How to open direct DropDownList when clicked in WebGrid
posted

Hi All,

When the editor of a column is a dropdown list (doesn't really matter whether ASP.NET or Infragistics) you need to click the cell once to activate the cell and enter the edit mode. Then you need to click once more in order to open the dropdown list for selection.

Can anyone help me with a "snippet" on how to open the dropdown list at the first click already?

Regards,

_Adrian_

 

  • 5739
    posted

    Hi,

    I didn't test it but I would try hadling the client side enterededitmode event of the grid and then use code to open the dropdown client side.  Here is the code to open an Infragistics webdropdown client side:

    var ddlcustomer = $find('<%= ddlCustomerID.ClientID %>');

    ddlcustomer.openDropDown();

    Ed