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#
[ToolboxBitmap(typeof(RadDiagram), "Toolbox.Icons.Diagram.png")]
[TelerikToolboxCategory("Visualization")]
[RequiredScript(typeof(Html5DataVizDiagram))]
[ClientScriptResource("Telerik.Web.UI.RadDiagram", "Telerik.Web.UI.Diagram.Scripts.RadDiagram.js")]
[ClientScriptResource("Telerik.Web.UI.RadDiagram", "Telerik.Web.UI.Diagram.Scripts.RadDiagramSkins.js")]
[EmbeddedSkin("Diagram")]
[EmbeddedSkin("Diagram", "Default")]
[RequiredCss("Telerik.Web.UI.Skins.HTML5UI.dataviz.css", RenderMode.Classic, typeof(RadDiagram))]
[RequiredCss("Telerik.Web.UI.Skins.HTML5UI.dataviz.css", RenderMode.Lightweight, typeof(RadDiagram))]
public class RadDiagram : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadDiagram...

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.CreateDataSourceSelectArguments()DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataPropertyChanged()DataBoundControl.OnDataSourceViewChanged(object, EventArgs)DataBoundControl.OnLoad(EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformSelect()DataBoundControl.ValidateDataSource(object)DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.DataBind()BaseDataBoundControl.EnsureDataBound()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.OnInit(EventArgs)BaseDataBoundControl.OnPreRender(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.RenderContents(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 RadDiagram()

Properties

Defines Data Binding Settings for RadDiagram

C#
public BindingSettings BindingSettings { get; }

Defines the client events handlers.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramClientEvents ClientEvents { get; }

Gets or sets the object from which RadDiagram retrieves its ConnectionsCollection.

C#
public object ConnectionDataSource { get; set; }

The data source object should be of a type that implements IEnumerable

Gets or sets the ID of the control from which the diagram control retrieves its list of connection data items.

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

The ID of a control that represents the data source from which the data bound control retrieves its data.

Defines the defaults of the connections. Whenever a connection is created, the specified connectionDefaults will be used and merged with the (optional) configuration passed through the connection creation method.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ConnectionDefaults ConnectionDefaultsSettings { get; }

The RadClientDataSource ID that fetches the connections for the Diagram

C#
public string ConnectionsClientDataSourceID { get; set; }

Defines the connections configuration.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramConnectionsCollection ConnectionsCollection { get; }

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";
       }
}

Enable editing of the diagram.

C#
public bool Editable { get; set; }

Defines the editable configuration.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramEditable EditableSettings { get; }

Defines the diagram's Layout settings

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramLayout LayoutSettings { get; }

Defines the pannable options.

C#
public bool Pannable { get; set; }

Defines the pannable options.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Pannable PannableSettings { get; }

Defines the settings for the client-side Pdf export.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramPdf PdfSettings { get; }

Defines the selectable options.

C#
public bool Selectable { get; set; }

Defines the selectable options.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Selectable SelectableSettings { get; }

Defines the shape options.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeDefaults ShapeDefaultsSettings { get; }

Defines the shape options.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramShapesCollection ShapesCollection { get; }
C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

The template which renders the content of the shape when bound to a dataSource. The names you can use in the template correspond to the properties used in the dataSource. See the dataSource topic below for a concrete example.

C#
public string Template { get; set; }

The zoom level in percentages.

C#
public double Zoom { get; set; }

The zoom max level in percentages.

C#
public double ZoomMax { get; set; }

The zoom min level in percentages.

C#
public double ZoomMin { get; set; }

The zoom step when using the mouse-wheel to zoom in or out.

C#
public double ZoomRate { get; set; }

Methods

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

Overrides: RadDataBoundControl.DescribeComponent(IScriptDescriptor)

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: DataBoundControl.LoadViewState(object)

C#
protected virtual void OnItemDataBound(object item, object dataItem)
Parameters:itemobjectdataItemobject
C#
protected override void PerformDataBinding(IEnumerable data)
Parameters:dataIEnumerable

Overrides: DataBoundControl.PerformDataBinding(IEnumerable)

C#
public string ResolveClientDataSourceID(string dataSourceID)
Parameters:dataSourceIDstringReturns:

string

C#
protected override object SaveViewState()
Returns:

object

Overrides: DataBoundControl.SaveViewState()

C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()

Events

Occurs when item is created during data binding.

C#
public event RadDiagram.ItemDataBoundEventHandler ItemDataBound

You can use the ItemDataBound event to set additional properties of the data bound items.