New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class NavigationNode : WebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer, INavigationNodeContainer

Inheritance: objectControlWebControlNavigationNode

Implements: IAttributeAccessorIComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDisposableIExpressionsAccessorINamingContainerINavigationNodeContainerIParserAccessorIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the NavigationNode class.

C#
public NavigationNode()

Initializes a new instance of the NavigationNode class.

C#
public NavigationNode(RadNavigation control)
Parameters:controlRadNavigation

Initializes a new instance of the NavigationNode class .

C#
public NavigationNode(string text, string navigateUrl)
Parameters:textstring

The text.

navigateUrlstring

The navigate URL.

Initializes a new instance of the NavigationNode class .

C#
public NavigationNode(string text)
Parameters:textstring

The text.

Properties

Gets or sets the Template for NavigationNode.

C#
[TemplateContainer(typeof(NavigationNodeContentTemplateContainer))]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ITemplate ContentTemplate { get; set; }
Property Value:

The Node template.

When a template is set, it is applied only for the current NavigationNode.

Get the Content Template container of the NavigationNode.

C#
[Browsable(false)]
public NavigationNodeContentTemplateContainer ContentTemplateContainer { get; }

Gets or set the DataNode of the current NavigationNode

C#
[Browsable(false)]
public object DataItem { get; set; }
Property Value:

The data Node.

Gets or sets the disabled image URL.

C#
public string DisabledImageUrl { get; set; }
Property Value:

The disabled image URL.

Gets or sets the hovered image URL.

C#
public string HoveredImageUrl { get; set; }
Property Value:

The hovered image URL.

Gets or sets the image URL.

C#
public string ImageUrl { get; set; }
Property Value:

The image URL.

Gets or sets a value indicating whether the node is a separator.

C#
public bool IsSeparator { get; set; }
Property Value:

True if the Node is a separator; otherwise false. The default value is false.

Gets or sets the navigate URL.

C#
[Bindable(true)]
public virtual string NavigateUrl { get; set; }
Property Value:

The navigate URL.

Gets the Nodes collection of the current NavigationNode

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public NavigationNodeCollection Nodes { get; }
Property Value:

The Nodes.

Implements: INavigationNodeContainer.Nodes

Gets or sets the Template for NavigationNode.

C#
[TemplateContainer(typeof(NavigationNode))]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ITemplate NodeTemplate { get; set; }
Property Value:

The Node template.

When a template is set, it is applied only for the current NavigationNode.

Gets or sets the owner.

C#
[Browsable(false)]
public RadNavigation Owner { get; }
Property Value:

The owner.

Gets or sets a value indicating whether the Node is selected.

C#
public bool Selected { get; set; }
Property Value:

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.

C#
public string SelectedImageUrl { get; set; }
Property Value:

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.

C#
public string SpriteCssClass { get; set; }
Property Value:

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.

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the target.

C#
[TypeConverter(typeof(TargetConverter))]
public virtual string Target { get; set; }
Property Value:

The target.

Gets or sets the template data.

C#
public Dictionary<string, object> TemplateData { get; set; }
Property Value:

The template data.

Gets or set the Text of the current NavigationNode

C#
public virtual string Text { get; set; }
Property Value:

The text.

Methods

Instantiates the ContentTemplate inside the Content. Clears all existing controls in the Content before that.

C#
public void ApplyContentTemplate()
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: Control.OnPreRender(EventArgs)