jQuery UI Widgets Forums Navigation Expander closing multip expander simultaneously

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 5 years ago.

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

  • muthu
    Participant

    Hi,

    I’m using multiple expander. And if i click one expander, other expander will close automatically.

    Here my code,

    //Expander define
    $(“#expander1”).jqxExpander({ width: ‘100%’,expanded: false});
    $(“#popupWindow”).jqxExpander({ width: ‘100%’, expanded: false});
    $(“#partnerContactsExpander”).jqxExpander({ width: ‘100%’,expanded:false});
    $(“#partnerContactsFormExpander”).jqxExpander({ width: ‘100%’, expanded: false});

    $(‘#expander1’).on(‘expanding’, function () {
    $(“#popupWindow”).jqxExpander({ width: ‘100%’, expanded: false});
    $(“#partnerContactsExpander”).jqxExpander({ width: ‘100%’,expanded:false});
    $(“#partnerContactsFormExpander”).jqxExpander({ width: ‘100%’, expanded: false});
    });

    $(‘#popupWindow’).on(‘expanded’, function () {
    $(“#expander1”).jqxExpander({ width: ‘100%’, expanded: false});
    $(“#partnerContactsExpander”).jqxExpander({ width: ‘100%’,expanded:false});
    $(“#partnerContactsFormExpander”).jqxExpander({ width: ‘100%’, expanded: false});
    });

    $(‘#partnerContactsExpander’).on(‘expanding’, function () {
    $(“#expander1”).jqxExpander({ width: ‘100%’, expanded: false});
    $(“#popupWindow”).jqxExpander({ width: ‘100%’,expanded:false});
    $(“#partnerContactsFormExpander”).jqxExpander({ width: ‘100%’, expanded: false});
    });

    $(‘#partnerContactsFormExpander’).on(‘expanded’, function () {
    $(“#expander1”).jqxExpander({ width: ‘100%’, expanded: false});
    $(“#popupWindow”).jqxExpander({ width: ‘100%’,expanded:false});
    $(“#partnerContactsExpander”).jqxExpander({ width: ‘100%’, expanded: false});
    });

    But, it is not working.. Help me.

    Thanks,
    Muthu


    Dimitar
    Participant

    Hi Muthu,

    We suggest you use the jqxNavigationBar widget, which offers the functionality you require.

    Best Regards,
    Dimitar

    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.