jQuery UI Widgets Forums Lists DropDownList DropdownList inside window

This topic contains 2 replies, has 2 voices, and was last updated by  gush 8 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • DropdownList inside window #83019

    gush
    Participant

    Hi,
    I’m using jqxDropDownList inside a jqxWindow.
    I’m catching the close event for the window, and calling ‘destroy’ to clean the DOM.
    The problem is that the dropdownlist is leaving behind a top level div.

    Is there anything I can do to clean it up when the window is closed?

    DropdownList inside window #83026

    Hristo
    Participant

    Hello gush,

    Try to use this way:

    $('#jqxWindow').on('close', function (event) {
        $('#jqxDropDownList').jqxDropDownList('destroy'); 
        $("#jqxWindow").jqxWindow('destroy');
    });

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    DropdownList inside window #83028

    gush
    Participant

    Hi Hristo,

    That worked perfectly. Thank you.

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

You must be logged in to reply to this topic.