Click here to Skip to main content
13,044,543 members (57,549 online)
Click here to Skip to main content
Add your own
alternative version

Stats

376.7K views
69 bookmarked
Posted 23 Sep 2002

WebPanelBar for ASP.NET

, 3 Apr 2003
Rate this:
Please Sign up or sign in to vote.
WebPanelBar for ASP.NET

Sample screenshot

Sample screenshot

Introduction WebPanelBar

WebPanelBar is powerful WinXP like menu bar. It's like Windows XP left group bar, and supports four level menu. It is just like Microsoft MSDN website left menubar. Submenu can scroll if it's too long.

WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[0].Caption = "First group";
WebPanelBar1.Groups[0].WebPanelBarGroupType = 
  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.FlyOut;
WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[0].Caption = "First item";
WebPanelBar1.Groups[0].Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutLink;

WebPanelBar1.Groups[0].Items[0].AddGroup();
WebPanelBar1.Groups[0].Items[0].Group.Caption = "SubGroup";

int i = 0;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[0].Caption = "SubMenu Item Head";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutHeading;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[1].Caption = 
  "Using Stored Procedures in Visual Basic .NET";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[2].Caption = "Separator";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSeparator;

for (i=3; i<30; i++)
{
    WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].Caption = "Sub Menu Item";
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].URL = "#";
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].WebPanelBarItemType = 
      YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;
}

WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[1].Caption = "Second item";
WebPanelBar1.Groups[0].Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[1].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutNormalLink;

WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[1].Caption = "Second group";
WebPanelBar1.Groups[1].WebPanelBarGroupType = 
  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;
WebPanelBar1.Groups[1].Items.Add();
WebPanelBar1.Groups[1].Items[0].Caption = "First item";
WebPanelBar1.Groups[1].Items[0].URL = "#";
//WebPanelBar1.Groups[1].Items[0].WebPanelBarItemType = 
//  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;

WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[2].Caption = "Third group";
//WebPanelBar1.Groups[1].WebPanelBarGroupType = 
//  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;
WebPanelBar1.Groups[2].Items.Add();
WebPanelBar1.Groups[2].Items[0].Caption = "First item";
WebPanelBar1.Groups[2].Items[0].URL = "#";
//WebPanelBar1.Groups[1].Items[0].WebPanelBarItemType = 
//   YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

yanhao
Web Developer
China China
No Biography provided

You may also be interested in...

Comments and Discussions

 
Generalwebpanelbar Pin
Mnajaf15-Jul-06 3:21
memberMnajaf15-Jul-06 3:21 
General&amp;#32534;&amp;#35793;DEMO&amp;#26102;&amp;#20986;&amp;#29616;&amp;#22914;&amp;#19979;&amp;#38382;&amp;#39064; Pin
vcc_017-Oct-03 2:09
membervcc_017-Oct-03 2:09 
GeneralStrongkey.snk Pin
wilson7810-Sep-03 22:39
memberwilson7810-Sep-03 22:39 
QuestionHow to register as COM server? Pin
W. Cheung11-Jun-03 15:07
memberW. Cheung11-Jun-03 15:07 
QuestionXML Config ? Pin
RandyBrown10-Apr-03 2:19
memberRandyBrown10-Apr-03 2:19 
GeneralChanging Fonts and Colors Pin
RandyBrown9-Apr-03 20:02
memberRandyBrown9-Apr-03 20:02 
GeneralRe: Changing Fonts and Colors Pin
yanhao10-Apr-03 0:21
memberyanhao10-Apr-03 0:21 
GeneralDemo is damaged zip Pin
mlaboria8-Apr-03 21:36
membermlaboria8-Apr-03 21:36 
GeneralRe: Demo is damaged zip Pin
yanhao9-Apr-03 15:29
memberyanhao9-Apr-03 15:29 
GeneralRe: Demo is damaged zip Pin
fyz12316-Jun-08 3:27
memberfyz12316-Jun-08 3:27 
GeneralNot Render the CollectionBase in your control Pin
Esteves24-Oct-02 5:33
memberEsteves24-Oct-02 5:33 
Questionwhat about cross-browser compatibility ? Pin
Anonymous30-Sep-02 23:49
sussAnonymous30-Sep-02 23:49 
AnswerRe: what about cross-browser compatibility ? Pin
yanhao1-Oct-02 21:07
memberyanhao1-Oct-02 21:07 
AnswerRe: what about cross-browser compatibility ? Pin
Metaphor3-Apr-03 23:02
memberMetaphor3-Apr-03 23:02 
GeneralRe: what about cross-browser compatibility ? Pin
theJazzyBrain7-Apr-03 7:26
membertheJazzyBrain7-Apr-03 7:26 
GeneralRe: what about cross-browser compatibility ? Pin
RandyBrown8-Apr-03 2:59
memberRandyBrown8-Apr-03 2:59 
GeneralRe: what about cross-browser compatibility ? Pin
Wcohen6-Sep-05 17:45
memberWcohen6-Sep-05 17:45 
GeneralI remove protected notes, now it is free tools Pin
yanhao27-Sep-02 4:51
memberyanhao27-Sep-02 4:51 
GeneralFeeding Pin
Thomas Freudenberg25-Sep-02 8:45
memberThomas Freudenberg25-Sep-02 8:45 
GeneralRe: Feeding Pin
yanhao25-Sep-02 17:07
memberyanhao25-Sep-02 17:07 
GeneralRe: Feeding Pin
RandyBrown9-Apr-03 19:22
memberRandyBrown9-Apr-03 19:22 
GeneralA suggestion Pin
zhangzq7125-Sep-02 5:43
memberzhangzq7125-Sep-02 5:43 
GeneralRe: A suggestion Pin
yanhao25-Sep-02 17:09
memberyanhao25-Sep-02 17:09 
General&#24456;&#22909; Pin
zhangzq7125-Sep-02 5:22
memberzhangzq7125-Sep-02 5:22 
GeneralIt looks interesting, but... Pin
Marc Clifton25-Sep-02 0:25
memberMarc Clifton25-Sep-02 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 4 Apr 2003
Article Copyright 2002 by yanhao
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid