开发者

Dropdown closes on its own

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 proble开发者_JAVA百科m with this.


"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.


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. :)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜