in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Menus - Postback problem

Last post 04-24-2008 4:38 PM by mjTaylorh. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-24-2008 4:38 PM

    Menus - Postback problem

    I have had some trouble getting the menu control to work.  Initially I was getting duplicate menus on PostBack so I solved that by only defining the menu items if it was an inital load but I still had to declare:

    menu = new C1WebMenu();

    menu.Layout = LayoutEnum.Horizontal;

    menu.Padding = Unit.Pixel(2);

    menu.ExpandEffect = C1WebExpandEffectEnum.Blind;

    MenuPlaceHolder.Controls.Add(menu);

    on Page_Init() to get the menu to appear on PostBack but this causes the menu to screw up and look erratic on the page and menu sub items only appear momentarily then disappear when an attempt is made to hover on them and click.  Is there a WORKING example of these things actually working?  I have the samples and the code doesn't work as provided.  The code as provided causes duplicate menus to appear.

Page 1 of 1 (1 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.