jQWidgets Forums

jQuery UI Widgets Forums Getting Started Tree Content is Nullified after .Load Ajax Call

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Andy
    Participant

    I have tried this every which way and just cannot work out why after a call to Ajax .load my tree content is nullified.

    I am using the following code to load a HTML form into a frame after which my Tree Popup no longer works,

    $(“#forms”).load(htmlFile + “?enSureReload=” + enSurePageReload);

    I have uploaded my working code baseline to Paste Bin,

    http://pastebin.com/embed_js.php?i=SDHg11Vf

    Steps to reproduce the issue,

    1) Load the Main Page,

    2) Use the Popup Menu to Expand / Collapse the Tree [This works perfectly before I perform the next step]

    3) Select the Create Menu [Create Constant] and load the Create Constant Form into the Right Hand Frame

    4) Reselect the Popup in the Tree Tabs Pane. Although the Popup Menu still appears the Options [Collapse All/Expand All] Popup menu options no longer work.

    No idea where to go from here so any help really appreciated.

    Thanks


    Peter Stoev
    Keymaster

    Hi plmandyb,

    Clicks of jqxMenu should be handled only in the “itemclick” event handler i.e you should have something like that:

        $("#jqxClassTreePopupMenu").on('itemclick', function (event) {
    $('#jqxTree').jqxTree('expandAll');
    });

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.