Diagram

Example

Razor
<kendo-diagram>
    <accessibility></accessibility>
    <connection-defaults></connection-defaults>
    <connections></connections>
    <connections-datasource></connections-datasource>
    <editable></editable>
    <hierarchical-datasource></hierarchical-datasource>
    <layout></layout>
    <navigatable></navigatable>
    <pannable />
    <pdf></pdf>
    <selectable></selectable>
    <shape-defaults></shape-defaults>
    <shape-template></shape-template>
    <shapes></shapes>
    <tooltip></tooltip>
</kendo-diagram>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
auto-bindBooleanIf set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
datasource-idStringThe data source id
on-addStringFired when the user adds new shape or connection.The event handler function context (available via the this keyword) will be set to the widget instance.
on-cancelStringFired when the user clicks the "cancel" button in the popup window in case the item was added via a toolbar.
on-changeStringFired when an item is added or removed to/from the diagram.
on-clickStringFired when the user clicks on a shape or a connection.
on-data-boundStringFired when the widget is bound to data from dataDource and connectionsDataSource.The event handler function context (available via the this keyword) will be set to the widget instance.
on-dragStringFired when dragging shapes or connection.
on-drag-endStringFired after finishing dragging shapes or connection.
on-drag-startStringFired before starting dragging shapes or connection.
on-editStringFired when the user edits a shape or connection.
on-item-bounds-changeStringFired when the location or size of a shape are changed.
on-item-rotateStringFired when a shape is rotated.
on-mouse-enterStringFired when the mouse enters a shape or a connection.Will not fire for disabled items.
on-mouse-leaveStringFired when the mouse leaves a shape or a connection.Will not fire for disabled items.
on-panStringFired when the user pans the diagram.
on-removeStringFired when the user removes a shape or connection.
on-saveStringFired when the user saves a shape or a connection.
on-selectStringFired when the user selects one or more items.
on-tool-bar-clickStringFired when the user clicks an item in the toolbar.
on-zoom-endStringFired when the user changes the diagram zoom level.
on-zoom-startStringFired when the user starts changing the diagram zoom level.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
tab-indexDoubleThe tabIndex value to set on the diagram element.
templateStringRepresents a collection of templates defined for the component.
template-handlerStringThe 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. For an example, refer to the dataSource topic below. This option expects the name of a JavaScript function that will be called to return the template.
template-idStringThe 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. For an example, refer to the dataSource topic below. This option expects the ID of the script element that contains the template.
template-viewIHtmlContentThe 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. For an example, refer to the dataSource topic below. This option expects the instance containing the created HTML.
themeString
zoomDoubleThe default zoom level of the Diagram in percentages.
zoom-maxDoubleThe maximum zoom level in percentages. The user will not be allowed to zoom in past this level.
zoom-minDoubleThe minimum zoom level in percentages. The user will not be allowed to zoom out past this level. You can see an example in zoomMax.
zoom-rateDoubleThe zoom step when using the mouse-wheel to zoom in or out.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support