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

RadOrgChart is a flexible tool for visualization of organizational structures and hierarchies.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TelerikToolboxCategory("Visualization")]
[ToolboxBitmap(typeof(RadOrgChart), "Toolbox.Icons.OrgChart.png")]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(MaterialRipple))]
[ClientScriptResource("Telerik.Web.UI.RadOrgChart", "Telerik.Web.UI.OrgChart.RadOrgChartScripts.js")]
[EmbeddedSkin("OrgChart", typeof(RadOrgChart))]
[EmbeddedSkin("OrgChart", "Default", typeof(RadOrgChart))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadOrgChart))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadButton))]
public class RadOrgChart : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, IOrgChartNodeContainer, IXmlSerializable, IPostBackEventHandler, ICallbackEventHandler

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadOrgChart...

Implements: IAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupIOrgChartNodeContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIScriptControlISkinnableControlIUrlResolutionServiceIXmlSerializable...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.CreateDataSourceSelectArguments()DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataPropertyChanged()DataBoundControl.OnDataSourceViewChanged(object, EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformDataBinding(IEnumerable)DataBoundControl.PerformSelect()DataBoundControl.ValidateDataSource(object)DataBoundControl.LoadViewState(object)DataBoundControl.SaveViewState()DataBoundControl.TrackViewState()DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.EnsureDataBound()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.RequiresDataBindingBaseDataBoundControl.DataBoundWebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.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(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)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

C#
public RadOrgChart()

Properties

Allows dragging of GroupItems (except in Simple Binding)

C#
public bool AllowGroupItemDragging { get; set; }

The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()

C#
protected override string CssClassFormatString { get; }

Overrides: RadDataBoundControl.CssClassFormatString

Example:
C#
protected override string CssClassFormatString
{
       get
       {
           return "RadDock RadDock_{0} rdWTitle rdWFooter";
       }
}

Gets or sets the data field holding the Collapsed property for the currently bound Node.

C#
public string DataCollapsedField { get; set; }

Gets or sets the data field holding the unique identifier for a Node.

C#
public string DataFieldID { get; set; }

Gets or sets the data field holding the ID of the parent Node.

C#
public string DataFieldParentID { get; set; }

Gets or sets the data field holding the ImageAltText property for the currently bound GroupItem.

C#
public string DataImageAltTextField { get; set; }

Gets or sets the data field holding an image URL for the currently bound GroupItem.

C#
public string DataImageUrlField { get; set; }

Gets or sets the data field holding the Text of the currently bound GroupItem.

C#
public string DataTextField { get; set; }

Gets or sets default image URL for every GroupItem image.

C#
public string DefaultImageUrl { get; set; }

When GroupItem's image URL is not set a default image is rendered for every OrgChartGroupItem.

Gets or sets whether to render a default image for every OrgChartGroupItem.

C#
public bool DisableDefaultImage { get; set; }

Gets or sets whether to enable collapsing and expanding of the Nodes

C#
public bool EnableCollapsing { get; set; }

Gets or sets whether to enable drag and drop

C#
public bool EnableDragAndDrop { get; set; }

Gets or sets whether to enable drill down functionality of the RadOrgChart.

C#
public bool EnableDrillDown { get; set; }

Gets or sets whether to enable collapsing and expanding the GroupItems of a Node.

C#
public bool EnableGroupCollapsing { get; set; }

The property takes effect if there is more than one item in a Node. In SimpleBinding is ignored.

Gets or sets the number of columns in all Node's visualization, except these that have their ColumnCount property set locally.

C#
public int GroupColumnCount { get; set; }

Simply breaks the single-line presentation of the Node (group) in RadOrgChart on multiple lines.

Gets or sets OrgChartGroupEnabledBinding settings for RadOrgChart.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public OrgChartGroupEnabledBinding GroupEnabledBinding { get; set; }

Gets or sets template for all items that doesn't have template nor does their node.

C#
[TemplateContainer(typeof(OrgChartGroupItemRendererBase))]
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public ITemplate ItemTemplate { get; set; }

Gets or Sets LoadOnDemand state

C#
public virtual OrgChartLoadOnDemand LoadOnDemand { get; set; }

Gets or sets the maximum depth of the RadOrgChart hierarchy which will be binded.

C#
public int MaxDataBindDepth { get; set; }

Gets OrgChart's child OrgChartNodeCollection.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public OrgChartNodeCollection Nodes { get; }

Implements: IOrgChartNodeContainer.Nodes

Gets or sets a value indicating the client-side event handler that is called when the OrgChartGroupItemCollection is populated (for example by callback).

C#
public string OnClientGroupPopulated { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the OrgChartGroupItemCollection is about to be populated (for example by callback).

C#
public string OnClientGroupPopulating { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the OrgChartGroupItemCollection populating failed (for example by callback).

C#
public string OnClientGroupPopulationFailed { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the OrgChartNodeCollection is populated (for example by callback).

C#
public string OnClientNodePopulated { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the OrgChartNodeCollection is about to be populated (for example by callback).

C#
public string OnClientNodePopulating { get; set; }

Gets or sets a value indicating the client-side event handler that is called when the OrgChartNodeCollection populating failed (for example by callback).

C#
public string OnClientNodePopulationFailed { get; set; }
C#
public Orientation Orientation { get; set; }

Gets or sets whether to persist expand/collapse state after a postback.

C#
public bool PersistExpandCollapseState { get; set; }
C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public OrgChartRenderedFieldsSettings RenderedFields { get; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadDataBoundControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public OrgChartWebServiceBindings WebServiceBindings { get; set; }

Methods

Collapse all Groups in the RadOrgChart

C#
public void CollapseAllGroups()

Collapse all Nodes in the RadOrgChart

C#
public void CollapseAllNodes()

Collapse Groups by criteria (lambda)

C#
public void CollapseGroups(RadOrgChart.OrgChartExpandCollapseNodeCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartExpandCollapseNodeCriteria

Collapse Nodes by criteria (lambda)

C#
public void CollapseNodes(RadOrgChart.OrgChartExpandCollapseNodeCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartExpandCollapseNodeCriteria
C#
public override void DataBind()

Overrides: BaseDataBoundControl.DataBind()

C#
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeClientEvents(IScriptDescriptor)

C#
protected override void DescribeClientProperties(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeClientProperties(IScriptDescriptor)

Expand all Groups in the RadOrgChart

C#
public void ExpandAllGroups()

Expand all Nodes in the RadOrgChart

C#
public void ExpandAllNodes()

Expand Groups by criteria (lambda)

C#
public void ExpandGroups(RadOrgChart.OrgChartExpandCollapseNodeCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartExpandCollapseNodeCriteria

Expand Nodes by criteria (lambda)

C#
public void ExpandNodes(RadOrgChart.OrgChartExpandCollapseNodeCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartExpandCollapseNodeCriteria

Returns all GroupItems in the RadOrgChart.

C#
public IEnumerable<OrgChartGroupItem> GetAllGroupItems()
Returns:

IEnumerable<OrgChartGroupItem>

Collection of OrgChartGroupItem

Returns items by some criteria (lambda).

C#
[Obsolete("This method is obsolete. Please use the GetGroupItems(OrgChartGroupItemCriteria criteria) method instead.")]
public IEnumerable<OrgChartGroupItem> GetAllGroupItems(RadOrgChart.OrgChartGroupItemCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartGroupItemCriteria

Lambda expression

Returns:

IEnumerable<OrgChartGroupItem>

Collection of OrgChartGroupItem

Returns all Nodes in the RadOrgChart.

C#
public IEnumerable<OrgChartNode> GetAllNodes()
Returns:

IEnumerable<OrgChartNode>

Returns items by some criteria (lambda).

C#
public IEnumerable<OrgChartGroupItem> GetGroupItems(RadOrgChart.OrgChartGroupItemCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartGroupItemCriteria

Lambda expression

Returns:

IEnumerable<OrgChartGroupItem>

Collection of OrgChartGroupItem

Gets a node by hierarchical index

C#
public OrgChartNode GetNodeByHierarchicalIndex(int[] nodeIndexes)
Parameters:nodeIndexesint[]Returns:

OrgChartNode

If the node does not exist the returned value is null.

Returns nodes by some criteria (lambda).

C#
public IEnumerable<OrgChartNode> GetNodes(RadOrgChart.OrgChartNodeCriteria criteria)
Parameters:criteriaRadOrgChart.OrgChartNodeCriteriaReturns:

IEnumerable<OrgChartNode>

Gets OrgChart serialized as XML.

C#
public string GetXml()
Returns:

string

string (XML).

Deserializes OrgChart from XML file.

C#
public void LoadContentFile(string xmlFileName)
Parameters:xmlFileNamestring

Relative or virtual path of the loaded Xml file.

Deserializes OrgChart from XML string.

C#
public void LoadXml(string xml)
Parameters:xmlstring

string (XML)

C#
protected virtual void OnDrillDown(OrgChartDrillDownEventArguments e)
Parameters:eOrgChartDrillDownEventArguments
C#
protected virtual void OnGroupExpandCollapse(OrgChartGroupExpandCollapseEventArguments e)
Parameters:eOrgChartGroupExpandCollapseEventArguments
C#
protected virtual void OnGroupItemDataBound(OrgChartGroupItemDataBoundEventArguments e)
Parameters:eOrgChartGroupItemDataBoundEventArguments
C#
protected virtual void OnGroupItemDrop(OrgChartGroupItemDropEventArguments e)
Parameters:eOrgChartGroupItemDropEventArguments
C#
protected override void OnInit(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnInit(EventArgs)

C#
protected override void OnLoad(EventArgs e)
Parameters:eEventArgs

Overrides: DataBoundControl.OnLoad(EventArgs)

C#
protected virtual void OnNodeDataBound(OrgChartNodeDataBoundEventArguments e)
Parameters:eOrgChartNodeDataBoundEventArguments
C#
protected virtual void OnNodeDrop(OrgChartNodeDropEventArguments e)
Parameters:eOrgChartNodeDropEventArguments
C#
protected virtual void OnNodeExpandCollapse(OrgChartNodeExpandCollapseEventArguments e)
Parameters:eOrgChartNodeExpandCollapseEventArguments
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnPreRender(EventArgs)

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.RenderContents(HtmlTextWriter)

Saves the client state data

C#
protected override string SaveClientState()
Returns:

string

Overrides: RadDataBoundControl.SaveClientState()

Events

Occurs when a drill-down action is performed on a node in the OrgChart.

C#
public event OrgChartDrillDownEventHandler DrillDown

Occurs when a group is expanded or collapsed in the OrgChart.

C#
public event OrgChartGroupExpandCollapseEventHandler GroupExpandCollapse

Occurs when a group item is data-bound in the OrgChart.

C#
public event OrgChartGroupItemDataBoundEventHandler GroupItemDataBound

Occurs when a group item is dropped onto a node in the OrgChart.

C#
public event OrgChartGroupItemDropEventHandler GroupItemDrop

Occurs when a node is data-bound in the OrgChart.

C#
public event OrgChartNodeDataBoundEventHandler NodeDataBound

Occurs when a node is dropped onto another node in the OrgChart.

C#
public event OrgChartNodeDropEventHandler NodeDrop

Occurs when a node is expanded or collapsed in the OrgChart.

C#
public event OrgChartNodeExpandCollapseEventHandler NodeExpandCollapse
In this article
DefinitionConstructorsRadOrgChart()PropertiesAllowGroupItemDraggingCssClassFormatStringDataCollapsedFieldDataFieldIDDataFieldParentIDDataImageAltTextFieldDataImageUrlFieldDataTextFieldDefaultImageUrlDisableDefaultImageEnableCollapsingEnableDragAndDropEnableDrillDownEnableGroupCollapsingGroupColumnCountGroupEnabledBindingItemTemplateLoadOnDemandMaxDataBindDepthNodesOnClientGroupPopulatedOnClientGroupPopulatingOnClientGroupPopulationFailedOnClientNodePopulatedOnClientNodePopulatingOnClientNodePopulationFailedOrientationPersistExpandCollapseStateRenderedFieldsSupportsRenderingModeTagKeyWebServiceBindingsMethodsCollapseAllGroups()CollapseAllNodes()CollapseGroups(OrgChartExpandCollapseNodeCriteria)CollapseNodes(OrgChartExpandCollapseNodeCriteria)DataBind()DescribeClientEvents(IScriptDescriptor)DescribeClientProperties(IScriptDescriptor)ExpandAllGroups()ExpandAllNodes()ExpandGroups(OrgChartExpandCollapseNodeCriteria)ExpandNodes(OrgChartExpandCollapseNodeCriteria)GetAllGroupItems()GetAllGroupItems(OrgChartGroupItemCriteria)GetAllNodes()GetGroupItems(OrgChartGroupItemCriteria)GetNodeByHierarchicalIndex(int[])GetNodes(OrgChartNodeCriteria)GetXml()LoadContentFile(string)LoadXml(string)OnDrillDown(OrgChartDrillDownEventArguments)OnGroupExpandCollapse(OrgChartGroupExpandCollapseEventArguments)OnGroupItemDataBound(OrgChartGroupItemDataBoundEventArguments)OnGroupItemDrop(OrgChartGroupItemDropEventArguments)OnInit(EventArgs)OnLoad(EventArgs)OnNodeDataBound(OrgChartNodeDataBoundEventArguments)OnNodeDrop(OrgChartNodeDropEventArguments)OnNodeExpandCollapse(OrgChartNodeExpandCollapseEventArguments)OnPreRender(EventArgs)RenderContents(HtmlTextWriter)SaveClientState()EventsDrillDownGroupExpandCollapseGroupItemDataBoundGroupItemDropNodeDataBoundNodeDropNodeExpandCollapse
Not finding the help you need?
Contact Support