This topic contains 6 replies, has 3 voices, and was last updated by  Peter Stoev 10 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Expanded indexes #917

    Anonymous

    How I can get all indexes of the expanded items when the navigationbar is in multiple expanded mode?

    Expanded indexes #920

    Peter Stoev
    Keymaster

    Hi Alex,

    Thanks for writing.

    In order to get the expanded items, you can use the “getItemStates” function. The “getItemStates” returns an array of item indexes and their expand/collapse states.

    The code snippet below gets the jqxNavigationBar items states and loops through them. When the state’s value is true, the item is expanded, otherwise the item is collapsed.

    var states = $(“#jqxNavigationBar”).jqxNavigationBar(‘getItemStates’);
    $.each(states, function (index) {
    if (this) {
    // The current item is expanded.
    }
    else {
    // The current item is collapsed.
    }
    });

    Hope this helps you.

    Please feel free to write us, if you have additional questions.

    Best Regards,
    Peter Stoev

    Expanded indexes #54429

    nico
    Participant

    Is this active today?
    Because it is not working to me.
    I may collapse and reduce an index of a jqxnavigatorbar element, but I can’t see the states of such element.

    May you give us a working example?

    Thank you

    Nico

    Expanded indexes #54430

    Peter Stoev
    Keymaster

    Hi Nico,

    No, it is not active. The Topic is from 2011 as you see. To use the widget, please refer to its Getting Started and API pages in the Help Documentation.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Expanded indexes #54431

    nico
    Participant

    Ok, I’m referring to this documentation you said, but I need to know the state of a jqxnavigatorbar index.
    There is nothing into documentation that may help, is there a way to do this?
    Thank You

    Nico

    Expanded indexes #54648

    nico
    Participant

    . Three years ago was possible, today it is not?
    . There is some milestone in future development that involves this feature?
    Thank You

    Nico

    Expanded indexes #54652

    Peter Stoev
    Keymaster

    Hi Nico,

    You can use the widget’s expandedItem and collapsedItem events to store which item is expanded and which is collapsed. Ex: http://jsfiddle.net/jqwidgets/vUM9G/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.