Hi,
I'm trying to expand menu group using toggle method on the server side during GroupBound call.
Protected
Sub LeftMenuBar_GroupBound(ByVal sender As Object, ByVal e As Infragistics.Web.UI.NavigationControls.ExplorerBarGroupEventArgs) Handles LeftMenuBar.GroupBound
e.ExplorerBarGroup.Toggle()
Even if this changes the Expanded property to True, when page renders menu group is not expanded. e.ExplorerBarGroup.Selected = True works fine. On the other hand, client side version of toggle metod works, but it's applaying animation I don't want to appear after the page postback.
Thanks
Bartek
Hello Bartek,
Let me know if you need further assistance with this question.
You can try to expand the group in a different event (“Page_Load” for example) like this:
WebExplorerBar1.DataSource = ds;
WebExplorerBar1.DataBind();
WebExplorerBar1.Groups[0].Toggle();
“GroupBound” event is executed later and it appears that cannot affect the rendering of the control.
You can also use “Expanded” property set to “true” to control the appearance of the control.
The “Group Expand Behavior” is one other method that can be used for control over group expanding - http://samples.infragistics.com/2010.3/WebFeatureBrowser/contents.aspx?showCode=true&t=WebExplorerBar/WebExplorerBarPropertyExplorer.aspx~srcview.aspx?path=~srcview.aspx?path=WebExplorerBar/WebExplorerBarPropertyExplorer.src
Let me know if you have further questions.
Anyone?