CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/22/2007 3:26:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
yairt
Asp.Net User
How to limit a menu width \ number of items shown2/22/2007 3:26:47 PM

0/0

Hello

I'm using a menu control (horizontal) in my app in order to create tabs so whenever the user clicks a menuitem he gets a different view, the number of menuitems is determined by the user's input so I add the menuitems in the vb code while running.

However, the fact that the number of items is unknown in advance causes me a problem because the menu can exceed the view width and even the entire page width.

I tried to find a way to build another "floor" of items or to dynamicaly hide exceeding items but without success.

I'm adding my code, hope someone can help me with a solution, thanks

<

asp:Menu ID="MD_Menu" runat="server" Orientation="Horizontal"

StaticMenuItemStyle-HorizontalPadding="10" StaticMenuItemStyle-ItemSpacing="0"

StaticMenuItemStyle-BorderColor="blue" StaticMenuItemStyle-BorderStyle="Solid" StaticMenuItemStyle-BorderWidth="1"

StaticSelectedStyle-Font-Bold="true" staticHoverStyle-BackColor="ActiveBorder" StaticSelectedStyle-BackColor="ActiveBorder">

<StaticMenuItemStyle BorderColor="Blue" BorderStyle="Solid" BorderWidth="1px" ItemSpacing="0px" HorizontalPadding="10px" />

<StaticSelectedStyle Font-Bold="True" BackColor="ActiveBorder" />

<StaticHoverStyle BackColor="ActiveBorder" />

</asp:Menu>

Public

Sub Build_Menu()

Dim i As Integer

Dim Full_Display_MI As New MenuItem

With Full_Display_MI

.Text = Localization.GetString(

"All_Floors", "~/DesktopModules/MainDisplay/App_LocalResources/ViewMainDisplay.ascx.resx")

.Value = 0

End With

If Menu_Index = 0 Then

Full_Display_MI.Selected =

True

End If

MD_Menu.Items.Add(Full_Display_MI)

Get_Floors_Details()

For i = 0 To Floors_Details.Count - 1

Dim Display_MI As New MenuItem

With Display_MI

.Text = Floors_Details.Item(i).Floor_Name

.Value = i + 1

End With

If Menu_Index = i + 1 Then

Display_MI.Selected =

True

End If

MD_Menu.Items.Add(Display_MI)

Next

End Sub

 

Zhao Ji Ma - MS
Asp.Net User
Re: How to limit a menu width \ number of items shown3/1/2007 6:57:31 AM

0/0

Hi,

You might want to have a look at these:

http://forums.asp.net/thread/1444690.aspx 

http://forums.asp.net/thread/774098.aspx

hope it helps!


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
CHI 99, Human Factors in Computing Systems: The CHI is the Limit : CHI 99 Conference Proceedings Authors: Marian G. Williams, Steven Pemberton, Mark W. Altom, SIGCHI (Group : U.S.), Kate Ehrlich, William Newman, Pages: 629, Published: 1999
Dreamweaver MX: The Missing Manual Authors: David Sawyer McFarland, David McFarland, Pages: 779, Published: 2002
Statistical Thinking in Business Authors: J. A. John, David Whitaker, David G. Johnson, Pages: 394, Published: 2006
Macromedia Flash 8 @work: Projects and Techniques to Get the Job Done Authors: Phillip Kerman, Pages: 416, Published: 2006
Adobe Acrobat 8 PDF Bible Authors: Ted Padova, Pages: 1085, Published: 2007
Second IEEE International Conference on Engineering of Complex Computer Systems: Held Jointly with 6th CSESAW, 4th IEEE RTAW, and SES'96, Montréal, Québec, Canada, October 21-25, 1996 Authors: IEEE Computer Society Technical Committee on Complexity in Computing, IEEE, International Federation of Automatic Control Technical Committee on Computers, IEEE Computer Society, Pages: 528, Published: 1996
The Handbook of Software for Engineers and Scientists Authors: Paul W. Ross, Pages: 1557, Published: 1996
Learning Microsoft Access 2003 Module 1 (Introductory) Authors: Greg Bowden, Pages: 162, Published: 2004
CHI 2005: Technology, Safety, Community : Conference on Human Factors in Computing Systems, Portland, Oregon, USA, April 2-7, 2005 : Conference Proceedings Authors: Association for Computing Machinery (Nueva York). Special Interest Group on Computer-Human Interaction, Computer-Human Interfaces Conference (2005 : Portland), SIGCHI (Group : U.S.), Association for Computing Machinery (New York). Special Interest Group on Computer, Wendy Kellogg, Association for Computing Machin, systems Conference on human factors in c, Human Interaction, Pages: 933, Published: 2005

Web:
how to limit shown values in a menu/list hi may i ask how to change number of values shown in a dropdown of a menu/list? here ... you should see 10 items in a menu with a scrollbar. ...
Object Histogram View Choosing Limit an Existing Slice presents the set of execution slices you can choose to limit to Selected Items. Help menu. Selecting Help in a view ...
Number of Recently Used Progs in Start Menu - Mobility Site To limit the number of items displayed you must shorten the width of the Start Menu ... Programs, Settings, Find and Help must always be shown on the menu. ...
Need to limit menu items by login - ASP.NET Forums Need to limit menu items by login. Last post 10-29-2007 7:32 PM by RTernier. 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Design Optimization Select the items shown to store the Volume as a parameter. .... Repeat the above steps to specify the variable limits for the width of the beam (identical ...
Setting User Preferences Selecting Limit Item Details to Only Fields Shown in List on the Options menu does this. Note that the order of the fields shown in the Item Details display ...
JoomlArt Tutorials - JA Xenia Link Items: Number of other items listed in each category. Max Chars: Limit the number of characters in the showing item of each category. Image Width: ...
General section Meta information cache size limit. This option gives the maximum number of multimedia items for which KPlayer should store the file properties. ...
Joomla! • View topic - Menu module behavior when there are no menu ... May 12, 2008 ... Joomla 1.5 introduced new menu functionality allowing administrators to limit the levels of menu items shown in a menu module. ...
CMS Made Simple Forum: Understanding Menu Templates - how to ... + Understanding Menu Templates - how to stretch menu to fit width available. ..... I know I can limit the number of items in the top menu. ...

Videos:
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










access to the path "c:\windows blah blah blah\temporary asp.net files\root\blah blah blah" is denied

create word documents via asp.net page

web part functionality for each control within a page

check users online & offline

webparts

dnn setup (bo's vs. core team)

impossible to use, please help

login/authentication

forms & windows authentication

simple dropdownlist selected item question

catch browser being closed

descrypting smime.p7m using .net cryptography algorithms

accidentally set the login page to home....

row color in a datagrid.

reed files from diferent computer problem

add this event to your personal calendar

sowens technologies announces new line of security software for dotnetnuke portal software

how to use the module?

database logging with file logging 3.1

how to send data to sql database

urgent~message box with yes or no button????

connection changes

problem with dropdownlist

especial chars

checkbox weird display

how to use getauthcookie?

getting menu items from the database?

help with regex.replace

rss feeds

workflow engine module

 
All Times Are GMT