jQuery UI Widgets Forums Navigation NavigationBar, ToolBar, NavBar Expand/collapse item programmatically

This topic contains 1 reply, has 2 voices, and was last updated by  Minko 12 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Expand/collapse item programmatically #966



    I’ve got one more question about the navigationbar. I’m creating RIA in which I need to collapse and expand few items of the navigationbar without user interaction. How can I do this?

    Best regards,


    Expand/collapse item programmatically #976


    Hi Alex,

    The jqxNavigationbar has methods “expandAt” and “collapseAt”. If the jqxNavigationbar is in single expanded item mode you can use the following piece of code to expand any item (if you’re not expanding the current expanded item, the current expanded item is going to be collapsed):

    $('#navigationBar').jqxNavigationBar('expandAt', index_to_expand);

    If you’re in multiple expanded mode you can expand and collapse items with the following methods:

    $('#navigationBar').jqxNavigationBar('expandAt', index_to_expand);
    $('#navigationBar').jqxNavigationBar('collapseAt', index_to_collapse);

    Best regards,


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

You must be logged in to reply to this topic.