DiagramEventBuilder
Defines the fluent API for configuring the Kendo UI Diagram for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DiagramEventBuilder : EventBuilder
Inheritance: objectEventBuilderDiagramEventBuilder
Inherited Members
Constructors
Initializes a new instance of the DiagramEventBuilder class.
public DiagramEventBuilder(IDictionary<string, object> events)
The Diagram event handlers.
Methods
Defines the handler of the Add client-side event. Fired 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.
public DiagramEventBuilder Add(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Add client-side event. Fired 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.
public DiagramEventBuilder Add(string handler)
The name of the JavaScript function that will handle the Add event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Cancel client-side event. Fired when the user clicks the "cancel" button in the popup window in case the item was added via a toolbar.
public DiagramEventBuilder Cancel(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Cancel client-side event. Fired when the user clicks the "cancel" button in the popup window in case the item was added via a toolbar.
public DiagramEventBuilder Cancel(string handler)
The name of the JavaScript function that will handle the Cancel event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Change client-side event. Fired when an item is added or removed to/from the diagram.
public DiagramEventBuilder Change(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Change client-side event. Fired when an item is added or removed to/from the diagram.
public DiagramEventBuilder Change(string handler)
The name of the JavaScript function that will handle the Change event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Click client-side event. Fired when the user clicks on a shape or a connection.
public DiagramEventBuilder Click(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Click client-side event. Fired when the user clicks on a shape or a connection.
public DiagramEventBuilder Click(string handler)
The name of the JavaScript function that will handle the Click event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DataBound client-side event. Fired 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.
public DiagramEventBuilder DataBound(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DataBound client-side event. Fired 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.
public DiagramEventBuilder DataBound(string handler)
The name of the JavaScript function that will handle the DataBound event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Drag client-side event. Fired when dragging shapes or connection.
public DiagramEventBuilder Drag(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Drag client-side event. Fired when dragging shapes or connection.
public DiagramEventBuilder Drag(string handler)
The name of the JavaScript function that will handle the Drag event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DragEnd client-side event. Fired after finishing dragging shapes or connection.
public DiagramEventBuilder DragEnd(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DragEnd client-side event. Fired after finishing dragging shapes or connection.
public DiagramEventBuilder DragEnd(string handler)
The name of the JavaScript function that will handle the DragEnd event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DragStart client-side event. Fired before starting dragging shapes or connection.
public DiagramEventBuilder DragStart(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the DragStart client-side event. Fired before starting dragging shapes or connection.
public DiagramEventBuilder DragStart(string handler)
The name of the JavaScript function that will handle the DragStart event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Edit client-side event. Fired when the user edits a shape or connection.
public DiagramEventBuilder Edit(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Edit client-side event. Fired when the user edits a shape or connection.
public DiagramEventBuilder Edit(string handler)
The name of the JavaScript function that will handle the Edit event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ItemBoundsChange client-side event. Fired when the location or size of a shape are changed.
public DiagramEventBuilder ItemBoundsChange(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ItemBoundsChange client-side event. Fired when the location or size of a shape are changed.
public DiagramEventBuilder ItemBoundsChange(string handler)
The name of the JavaScript function that will handle the ItemBoundsChange event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ItemRotate client-side event. Fired when a shape is rotated.
public DiagramEventBuilder ItemRotate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ItemRotate client-side event. Fired when a shape is rotated.
public DiagramEventBuilder ItemRotate(string handler)
The name of the JavaScript function that will handle the ItemRotate event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the MouseEnter client-side event. Fired when the mouse enters a shape or a connection.Will not fire for disabled items.
public DiagramEventBuilder MouseEnter(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the MouseEnter client-side event. Fired when the mouse enters a shape or a connection.Will not fire for disabled items.
public DiagramEventBuilder MouseEnter(string handler)
The name of the JavaScript function that will handle the MouseEnter event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the MouseLeave client-side event. Fired when the mouse leaves a shape or a connection.Will not fire for disabled items.
public DiagramEventBuilder MouseLeave(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the MouseLeave client-side event. Fired when the mouse leaves a shape or a connection.Will not fire for disabled items.
public DiagramEventBuilder MouseLeave(string handler)
The name of the JavaScript function that will handle the MouseLeave event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Pan client-side event. Fired when the user pans the diagram.
public DiagramEventBuilder Pan(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Pan client-side event. Fired when the user pans the diagram.
public DiagramEventBuilder Pan(string handler)
The name of the JavaScript function that will handle the Pan event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Remove client-side event. Fired when the user removes a shape or connection.
public DiagramEventBuilder Remove(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Remove client-side event. Fired when the user removes a shape or connection.
public DiagramEventBuilder Remove(string handler)
The name of the JavaScript function that will handle the Remove event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Save client-side event. Fired when the user saves a shape or a connection.
public DiagramEventBuilder Save(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Save client-side event. Fired when the user saves a shape or a connection.
public DiagramEventBuilder Save(string handler)
The name of the JavaScript function that will handle the Save event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Select client-side event. Fired when the user selects one or more items.
public DiagramEventBuilder Select(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the Select client-side event. Fired when the user selects one or more items.
public DiagramEventBuilder Select(string handler)
The name of the JavaScript function that will handle the Select event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ToolBarClick client-side event. Fired when the user clicks an item in the toolbar.
public DiagramEventBuilder ToolBarClick(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ToolBarClick client-side event. Fired when the user clicks an item in the toolbar.
public DiagramEventBuilder ToolBarClick(string handler)
The name of the JavaScript function that will handle the ToolBarClick event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ZoomEnd client-side event. Fired when the user changes the diagram zoom level.
public DiagramEventBuilder ZoomEnd(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ZoomEnd client-side event. Fired when the user changes the diagram zoom level.
public DiagramEventBuilder ZoomEnd(string handler)
The name of the JavaScript function that will handle the ZoomEnd event.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ZoomStart client-side event. Fired when the user starts changing the diagram zoom level.
public DiagramEventBuilder ZoomStart(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DiagramEventBuilder .
Defines the handler of the ZoomStart client-side event. Fired when the user starts changing the diagram zoom level.
public DiagramEventBuilder ZoomStart(string handler)
The name of the JavaScript function that will handle the ZoomStart event.
Returns:Returns the current instance of DiagramEventBuilder .