RadDiagram
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[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:
Inherited Members
Constructors
public RadDiagram()
Properties
Defines Data Binding Settings for RadDiagram
public BindingSettings BindingSettings { get; }
Defines the client events handlers.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramClientEvents ClientEvents { get; }
Gets or sets the object from which RadDiagram retrieves its ConnectionsCollection.
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.
public string ConnectionDataSourceId { get; set; }
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.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ConnectionDefaults ConnectionDefaultsSettings { get; }
The RadClientDataSource ID that fetches the connections for the Diagram
public string ConnectionsClientDataSourceID { get; set; }
Defines the connections configuration.
[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()
protected override string CssClassFormatString { get; }
Overrides:
Defines the editable configuration.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramEditable EditableSettings { get; }
Defines the diagram's Layout settings
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramLayout LayoutSettings { get; }
Defines the pannable options.
[PersistenceMode(PersistenceMode.InnerProperty)]
public Pannable PannableSettings { get; }
Defines the settings for the client-side Pdf export.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramPdf PdfSettings { get; }
Defines the selectable options.
public bool Selectable { get; set; }
Defines the selectable options.
[PersistenceMode(PersistenceMode.InnerProperty)]
public Selectable SelectableSettings { get; }
Defines the shape options.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ShapeDefaults ShapeDefaultsSettings { get; }
Defines the shape options.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DiagramShapesCollection ShapesCollection { get; }
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
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.
public string Template { get; set; }
Methods
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
protected override void PerformDataBinding(IEnumerable data)
Overrides:
protected override void TrackViewState()
Overrides:
Events
Occurs when item is created during data binding.
public event RadDiagram.ItemDataBoundEventHandler ItemDataBound
You can use the ItemDataBound event to set additional properties of the data bound items.