RadSiteMap
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[EmbeddedSkin("SiteMap", typeof(RadSiteMap))]
[EmbeddedSkin("SiteMap", "Default", typeof(RadSiteMap))]
[ClientScriptResource("Telerik.Web.UI.RadSiteMap", "Telerik.Web.UI.SiteMap.RadSiteMap.js")]
[TelerikToolboxCategory("Navigation")]
[ToolboxBitmap(typeof(RadSiteMap), "Toolbox.Icons.SiteMap.png")]
public class RadSiteMap : HierarchicalControlItemContainer, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, INamingContainer, IXmlSerializable, IControlItemContainer, IRadSiteMapNodeContainer
Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlControlItemContainerHierarchicalControlItemContainerRadSiteMap...
Implements:
Inherited Members
Constructors
public RadSiteMap()
Properties
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Gets a collection of RadSiteMapNodeBindingCollection objects that define the relationship between a data item and the tree node it is binding to.
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
public RadSiteMapNodeBindingCollection DataBindings { get; }
A RadSiteMapNodeBindingCollection that represents the relationship between a data item and the tree node it is binding to.
Gets or sets the SiteMapLevelSetting object to be used when no specific settings have been defined for a given level.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DefaultSiteMapLevelSetting DefaultLevelSettings { get; }
A SiteMapLevelSetting object.
Individual levels can be customized using the LevelSettings collection. Levels not specified in this collection will get the default settings.
Gets or sets a value indicating whether the html encoding will be applied when the site map items are rendered.
public bool EnableTextHTMLEncoding { get; set; }
By default RadSiteMap will not apply a html encoding when the site map items are rendered.
Gets the collection of LevelSettings objects that define the appearance of the nodes according to their level in the hierarchy.
[PersistenceMode(PersistenceMode.InnerProperty)]
public SiteMapLevelSettingCollection LevelSettings { get; }
A SiteMapLevelSettingCollection containing LevelSettings that define the appearance of the nodes according to their level in the hierarchy.
Gets a RadSiteMapNodeCollection object that contains the root nodes of the current RadSiteMap control.
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadSiteMapNodeCollection Nodes { get; }
A RadSiteMapNodeCollection that contains the root nodes of the current RadSiteMap control. By default the collection is empty (RadSiteMap has no children).
Implements:
Use the nodes property to access the root nodes of the RadSiteMap control. You can also use the nodes property to manage the root nodes - you can add, remove or modify nodes.
Gets a collection of RadSiteMapNode objects that represent the node in the control that is currently selected.
[Browsable(false)]
public RadSiteMapNode SelectedNode { get; }
Gets or sets a value indicating whether to render node lines in a fashion similar to RadTreeView.
public bool ShowNodeLines { get; set; }
true if node lines should be rendered; false otherwise. The default value is false
Node lines are supported in List rendering mode without columns.
Methods
This methods clears the selected nodes of the current RadSiteMap instance.
public void ClearSelectedNode()
protected override ControlItemCollection CreateChildItemCollection()
Overrides:
protected override NavigationItemBindingCollection CreateDataBindings()
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
Gets a linear list of all nodes in the RadSiteMap control.
public IList<RadSiteMapNode> GetAllNodes()
An IList<T> containing all nodes (from all hierarchy levels).
protected override IEnumerable<ScriptReference> GetScriptReferences()
Overrides:
protected virtual void OnTemplateNeeded(RadSiteMapNodeEventArgs e)
protected override void RaiseItemDataBound(ControlItem item)
Overrides:
protected override void RaiseTemplateNeeded(ControlItem item)
Overrides:
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
Events
Occurs when node is created.
public event RadSiteMapNodeEventHandler NodeCreated
The NodeCreated event occurs before NodeDataBound and after postback if ViewState is enabled. NodeCreated is not raised for items defined inline in the ASPX.
Occurs when node is data bound.
public event RadSiteMapNodeEventHandler NodeDataBound
Use the NodeDataBound event to set additional properties of the databound nodes.
Occurs before template is being applied to the node.
public event RadSiteMapNodeEventHandler TemplateNeeded
The TemplateNeeded event is raised before a template is been applied on the node, both during round-trips (postbacks) and at the time data is bound to the control. The TemplateNeeded event is not raised for nodes which are defined inline in the page or user control.
The TemplateNeeded event is commonly used for dynamic templating.