jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList DropDown disappear after clicking

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • DropDown disappear after clicking #18265

    Hello

    I have build a drop down list but after clicking all the elements jq widgets drop down in the window popup disappear.

    DropDown disappear after clicking #18266

    The problem is that, when i click on the dropdownlist it fires also the event on close of the window that is programmed to destroy all the element inside.

    Is there any intersection beetween on close event of window and the dropdown?

    DropDown disappear after clicking #18267

    Peter Stoev
    Keymaster

    Hi GabrieleMartino,

    If you have handler for the Window’s close event, make sure that it is called from the window and not from an element inside the window. jQuery events are bubble events so an event of inner Element bubbles up to a parent Element unless you catch the event of the inner Element and “return false” in the event handler. As a solution for your scenario, subscribe to the jqxDropDownList’s “close” event and return false in the event handler. That will prevent the Event to bubble up to the Window.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.