NavigationNode
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class NavigationNode : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer, INavigationNodeContainer
Inheritance: objectControlWebControlNavigationNode
Implements:
Inherited Members
Constructors
Initializes a new instance of the NavigationNode class.
public NavigationNode()
Initializes a new instance of the NavigationNode class.
Initializes a new instance of the NavigationNode class .
Properties
Gets or sets the Template for NavigationNode.
[TemplateContainer(typeof(NavigationNodeContentTemplateContainer))]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ITemplate ContentTemplate { get; set; }
The Node template.
When a template is set, it is applied only for the current NavigationNode.
Get the Content Template container of the NavigationNode.
[Browsable(false)]
public NavigationNodeContentTemplateContainer ContentTemplateContainer { get; }
Gets or set the DataNode of the current NavigationNode
[Browsable(false)]
public object DataItem { get; set; }
The data Node.
Gets or sets the disabled image URL.
public string DisabledImageUrl { get; set; }
The disabled image URL.
Gets or sets the hovered image URL.
public string HoveredImageUrl { get; set; }
The hovered image URL.
Gets or sets the image URL.
public string ImageUrl { get; set; }
The image URL.
Gets or sets a value indicating whether the node is a separator.
public bool IsSeparator { get; set; }
True if the Node is a separator; otherwise false. The default value is
false.
Gets or sets the navigate URL.
[Bindable(true)]
public virtual string NavigateUrl { get; set; }
The navigate URL.
Gets the Nodes collection of the current NavigationNode
[PersistenceMode(PersistenceMode.InnerProperty)]
public NavigationNodeCollection Nodes { get; }
The Nodes.
Implements:
Gets or sets the Template for NavigationNode.
[TemplateContainer(typeof(NavigationNode))]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ITemplate NodeTemplate { get; set; }
The Node template.
When a template is set, it is applied only for the current NavigationNode.
Gets or sets the owner.
[Browsable(false)]
public RadNavigation Owner { get; }
The owner.
Gets or sets a value indicating whether the Node is selected.
public bool Selected { get; set; }
True if the Node is selected; otherwise false. The default value is
false.
Only one Node can be selected.
Gets or sets the selected image URL.
public string SelectedImageUrl { get; set; }
The selected image URL.
Gets or sets the Cascading Style Sheet (CSS) class that contains the sprite image for this Node and the positioning for it.
public string SpriteCssClass { get; set; }
The CSS that is used in sprite image scenarios. String.Empty.
By default, the image in an Node is defined by the ImageUrl property. You can use SpriteCssClass to specify a class that will position a sprite instead of using image.
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets or sets the target.
[TypeConverter(typeof(TargetConverter))]
public virtual string Target { get; set; }
The target.
Gets or sets the template data.
public Dictionary<string, object> TemplateData { get; set; }
The template data.
Methods
Instantiates the ContentTemplate inside the Content. Clears all existing controls in the Content before that.
public void ApplyContentTemplate()