jQWidgets Forums

jQuery UI Widgets Forums General Discussions jqxWidgets and DOM problem

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxWidgets and DOM problem #59585

    silviorp
    Participant

    Hi.

    I’ve been using jqxWidgets for some experiments and I’m having a lot of trouble with using them dynamically.

    First of all, I have a menu on left side and jqxTabs on the right site. The menu opens my system sections on Tabs and these pages have other jqx widgets like grids, windows, combobox…

    The problem is that when I close the tab, the wdgets aren’t removed from DOM and when I open the tab again, another widget with the same ID is created. The pages content is loaded with ajax from JSP files. Why is it happening and how to fix it?

    Thanks.

    jqxWidgets and DOM problem #59586

    silviorp
    Participant

    Just trying to explain it better:

    When I apply the jqx function, the target div will be removed from its original position and will be appended to the body. This becomes a problem when using partial page updates, because the div will move out of the scope of the update. If the update creates the div again it will exist twice now, including all the problems like not unique IDs.

    jqxWidgets and DOM problem #59595

    Peter Stoev
    Keymaster

    Widgets are removed from the DOM when you call a widget’s method called “destroy”.

    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.