ComponentOne WebMenus and WebBars for ASP.NET: WebMenus and WebBars for ASP.NET Task-Based Help > C1WebTopicBar Tasks > Forcing the Collapsed Group to Open

Forcing the Collapsed Group to Open

To force the group to open, use the following code:

      Visual Basic

Protected Sub C1WebTopicBar1_GroupCollapsing(ByVal sender As Object, ByVal e As C1.Web.Command.C1WebGroupBeforeEventArgs)Handles C1WebTopicBar1.GroupCollapsing

   e.Cancel = True

End Sub

      C#

protected void C1WebTopicBar1_GroupCollapsing(object sender, C1.Web.Command.C1WebGroupBeforeEventArgs e)

{

 e.Cancel = true;

}


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.