Reputation: 21
Hi I have a dropdown on page. When I click on dropdown to select some value, the dropdown list open and then closes on its own. I have to repeat this 4-5 times to select a value. For info :- the data binds with dropdown on runtime through database. Can anybody guide me what might be the problem with this.
Upvotes: 2
Views: 2044
Reputation: 40
This happened to me.
My <select>element</select>
was inside a
Clicking on the element was triggering the wrapper which then triggered a refresh/close/release of the select dropdown.
Upvotes: 0
Reputation: 1480
At first please provide the code. In my guess you will be binding the code of DropDown on PostBack rather than (!IsPostBack) and make sure that the autopostback of DropDown is set to true.
Upvotes: 0
Reputation: 18797
It probably is a javascript problem.
Look in your page and check if a javascript closes the Dropdown on opening. You can view the bound events to your dropdown by using Visual Event.
Or maybe your mouse dbl clicks instead of single click. :)
Upvotes: 0
Reputation: 4909
"what might be the problem with this"
The problem with this might be that your dropdown is loosing focus somehow after you click / select it.
Upvotes: 2