Hi,
When I click the down arrow of the dropdownlist, the dropdownlist displays list. Is there a way to display the list when user click anywhere in the dropdownlist? When the dropdownlist is displaying initially, I like to show it as a blank.
ThanksSameem
Cool, this worked great..
Hello Sameem,
You can handle InputMouseDown client side event.
It is fired when you click on the input field of the WebDropDown.
Then you can use your shared logic in order to open/close the WebDropDown:
var isOpened = false;
function WebDropDown1_DropDownOpened(sender, eventArgs)
{
isOpened = true;
}
function WebDropDown1_InputMouseDown(sender, eventArgs)
if (isOpened) {
sender.closeDropDown();
isOpened = false;
else {
sender.openDropDown();
Let me know if you have further questions.
Hi
I found the solution for this. Using the clientside code sender.
However, It only open the dropdownlist. Can the following be done when user click on any where in the control?
If(Dropdownlist is open) then Close it else open it.ThanksSameem