ComponentOne WebMenus and WebBars for ASP.NET (2.0) Search HelpCentral 

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;

}

·      Delphi

procedure C1WebTopicBar1_GroupCollapsing(sender: System.Object; e: C1.Web.Command.C1WebGroupBeforeEventArgs e)

begin

  e.Cancel := true;

end;


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