Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Collapse all groups using javacript
posted

Hi,

m using webexplorerbar control in my masterpage and i have four group in that control.

I want only one group should expand at a time and i set group.expanded=true in server side.I try to use singleExpanded property and  it works but it fails to maintain its state, so that i removed singleExpanded property.

Now i decide that it wil work using javascript , so there is any solution to do collpase groups using javascript

  • 49378
    posted

    Hi avinash123,

    It has been some time since your post, however in case you still need assistance I would be glad to help.

    You can expand/collapse each ExplorerBar group on the client using the set_expanded() function, as such:

    ig_controls.WebExplorerBar1.getExplorerBarItems().getItem(0).set_expanded(true);

    Please feel free to contact me if you have any questions.