Asp menu item template




















The default value is null, which indicates that this property is not set. Instead of using the built-in rendering for a dynamic menu, you can define your own look and feel for a dynamic menu item by using the DynamicItemTemplate property. You can further control the style of a dynamic menu by using the DynamicItemFormatString property. Skip to main content. The following table lists the supported events. For information about how to configure this control so that it generates markup that conforms to accessibility standards, see Accessibility in Visual Studio and ASP.

NET Controls and Accessibility. Initializes a new instance of the Menu class. Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. Gets the collection of arbitrary attributes for rendering only that do not correspond to properties on the control. Gets or sets the algorithm that is used to generate the value of the ClientID property.

Gets a character value representing the separator character used in the ClientID property. Gets the HttpContext object associated with the server control for the current Web request. Gets a ControlCollection that contains the child controls of the Menu control. Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers. Gets a collection of MenuItemBinding objects that define the relationship between a data item and the menu item it is binding to.

Gets a reference to the naming container if the naming container implements IDataItemContainer. Gets a reference to the naming container if the naming container implements IDataKeysControl. Gets or sets the ID of the control from which the data-bound control retrieves its list of data items.

Gets or sets the duration for which a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu. Gets or sets the URL to an image to display at the bottom of each dynamic menu item to separate it from other menu items. Gets or sets a value indicating whether the built-in image that indicates that a dynamic menu item has a submenu is displayed.

Gets or sets the number of pixels to shift a dynamic menu horizontally relative to its parent menu item. Gets a reference to the Style object that allows you to set the appearance of a dynamic menu item when the mouse pointer is positioned over it. Gets a reference to the MenuItemStyle object that allows you to set the appearance of the menu items within a dynamic menu. Gets a reference to the MenuItemStyle object that allows you to set the appearance of a dynamic menu.

Gets or sets the alternate text for the image used to indicate that a dynamic menu item has a submenu. Gets or sets the URL to a custom image that is displayed in a dynamic menu item when the dynamic menu item has a submenu. Gets a reference to the MenuItemStyle object that allows you to set the appearance of the dynamic menu item selected by the user. Gets or sets the URL to an image to display at the top of each dynamic menu item to separate it from other menu items.

Gets or sets the number of pixels to shift a dynamic menu vertically relative to its parent menu item. Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. Gets a value indicating whether the current server control's child controls have any saved view-state settings. Gets or sets a value that indicates whether ASP.

NET should render a block of cascading style sheet CSS definitions for the styles that are used in the menu. Gets a value indicating whether the DataSourceID property is set. When implemented in a derived class, gets a value that indicates whether the control is using model binders. Gets a MenuItemCollection object that contains all menu items in the Menu control. Gets a MenuItemStyleCollection object that contains the style settings that are applied to menu items based on their level in a Menu control.

Gets a MenuItemStyleCollection object that contains the style settings that are applied to the selected menu item based on its level in a Menu control. Gets a MenuItemStyleCollection object that contains the style settings that are applied to the submenu items in the static menu based on their level in a Menu control.

Gets a value indicating whether the control participates in loading its view state by ID instead of index. Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.

Gets or sets the direction in which to render the Menu control. Gets a reference to the Page instance that contains the server control. Gets or sets the character used to delimit the path of a menu item in a Menu control. Gets or sets a value that specifies whether the Menu control renders HTML table elements and inline styles, or listitem elements and cascading style sheet CSS styles.

Gets or sets a value indicating whether the DataBind method should be called. Gets or sets the URL to an image displayed in a dynamic menu to indicate that the user can scroll down for additional menu items. Gets or sets the alternate text for the image specified in the ScrollDownImageUrl property. Gets or sets the URL to an image displayed in a dynamic menu to indicate that the user can scroll up for additional menu items. Gets or sets the alternate text for the image specified in the ScrollUpImageUrl property.

Gets information about the container that hosts the current control when rendered on a design surface. Gets or sets the alternate text for a hidden image read by screen readers to provide the ability to skip the list of links. Gets or sets the URL to an image displayed as the separator at the bottom of each static menu item. Gets or sets a value indicating whether the built-in image is displayed to indicate that a static menu item has a submenu. Gets a reference to the Style object that allows you to set the appearance of a static menu item when the mouse pointer is positioned over it.

Gets a reference to the MenuItemStyle object that allows you to set the appearance of the menu items in a static menu. Gets a reference to the MenuItemStyle object that allows you to set the appearance of a static menu. Gets or sets the alternate text for the pop-out image used to indicate that a static menu item has a submenu. Gets a reference to the MenuItemStyle object that allows you to set the appearance of the menu item selected by the user in a static menu.

Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false. This property is used primarily by control developers. Gets or sets the target window or frame in which to display the Web page content associated with a menu item.

Gets the virtual directory of the Page or UserControl that contains the current server control. Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values. Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. Gets a value that indicates whether the StateBag object is case-insensitive. Called after a child control is added to the Controls collection of the Control object.

Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers. Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.

Sets the cached ClientID value to null. Deletes the view-state and control-state information for all the server control's child controls. Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers. Creates the child controls of a Menu control. Creates a new ControlCollection object to hold the child controls both literal and server of the server control.

Creates the style object that is used internally by the WebControl class to implement all style related properties. Binds the data source to the Menu control. This method cannot be inherited. Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event. Determines whether the server control contains child controls. If it does not, it creates child controls.

Verifies that the menu control requires data binding and that a valid data source control is specified before calling the DataBind method. Searches the current naming container for a server control with the specified id parameter. Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the FindControl method.

Retrieves a HierarchicalDataSourceView object that the data-bound control uses to perform data operations. Retrieves the IHierarchicalDataSource that the data-bound control is associated with, if any.

Retrieves the design-time state of the Menu control. Gets the Type of the current instance. Returns the prefixed portion of the UniqueID property of the specified control. Loads the state of the properties in the Menu control that need to be persisted. Loads the previously saved view state of the Menu control.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.

Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

If you need immediate help, please submit a support ticket on the DevExpress Support Forum. We are here to help. Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.

You can open a local copy of this online demo directly from this webpage if using v Open CS Solution. Office



0コメント

  • 1000 / 1000