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
135
Collapse Group, Keep Selection
posted

I have the WebExplorerBar set to SingleExpanded.

I want to click on an ExplorerBarGroup without changing the ExplorerBarItem that is selected.

For example, if ExplorerBarItem A is selected in ExplorerBarGroup foo, when I click on ExplorerBarGroup Bar, I want foo to collapse (which it does), but I want to keep A selected (even though you no longer can see it). Of  course, if you click another ExplorerBarItem anywhere, the selection should change.

The  reasoning is that people can expand groups just to see what's in them, then go back to the group they were in and what was selected originally should still be selected.

I'm using NetAdvantage, Version=13.1.20131.2157

Is this possible? Any help appreciated.

Thanks.

  • 10240
    Verified Answer
    posted

    Hi sdl,

    The WebExplorerBar doesn't have this functionality directly baked in. You would need to write it in.

    The way I would see this is you would need to maintain a list of the possible items that can be selected. Then when handling the client-side ItemSelecting event, check if the item selecting matches one of the possible values. If no, set the value of the item selecting to the previously selected item, which should at this point be the last item selected.

    If you would like to see this feature be written into the control, you are invited to submit this as a new product idea. This can be done at http://ideas.infragistics.com

     

    Thank you Sdl. Let me know if you need additional information regarding this.