I am using the webexplorerbar as my menu on a master page, which is loading from an xml file
My issue is that if the user clicks the last displayed item (Level 1), the menu expands, but the user has to scroll down to see the explanded list (of level 2 items):
http://samples.infragistics.com/aspnet/Samples/WebExplorerBar/Display/ClientAPI/Default.aspx?cn=explorer-bar&sid=dae3fc67-3b5a-4872-8ed2-7b4b2b36ab9a
Is there a way of programatically scrolling the list down so that the expanded list is displayed, or at least some of it is displayed?
Hello Lorettac242,
I am following up to see if this issue is resolved.
If this isn’t the case please let me know if I may be of further assistance with this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
I am unable to see the behavior you are describing when I run the sample. I have a couple questions to help clarify this issue. Do you have more than one level of children in the WebExplorerBar? Are you using the scrollIntoView method or the focus? In the sample I scroll down to the last item in the list of children possibly scrolling to the first or second child may be a better solution.
Hi Mike,
Thanks for you assistance.
Youe sample appears to works, eratically. Sometimes, it appears to only work with the first expanded submenu, even though the that may not be the one that has been selected. Other times it just makes the menu scroll up and down weirdly. I am unable to pinpoint exactly what is happening with the code as yet, I will update this post once I figure it out.
Hello Loretta242,
I am following up to see if the sample and information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Hello loretta242,
I have created and attached a sample to demonstrate how to achieve this. Using the client side ItemExpanded event of the WebExplorerBar I gain access to the child items of the group that was expanded and get the anchor element of the last child. After you have the anchor element you can use focus or scrollIntoView to show the newly expanded items.
Please let me know if you have any questions concerning this matter.