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

Defines the fluent API for configuring the Kendo SmartPasteButton for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the SmartPasteButton class.

C#
public SmartPasteButtonEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The client events.

Methods

Defines the handler of the Error client-side event. Fired when an error occurs during SmartPasteButton processing.

C#
public SmartPasteButtonEventBuilder Error(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Error event.

Returns:

SmartPasteButtonEventBuilder

Example:
C#
@( Html.Kendo().SmartPasteButton()
.Name("smartPaste")
.Events(events =&gt; events
.Error("onError")
)
)

Defines the handler of the RequestEnd client-side event. Fired when the SmartPasteButton completes processing a paste operation.

C#
public SmartPasteButtonEventBuilder RequestEnd(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the RequestEnd event.

Returns:

SmartPasteButtonEventBuilder

Defines the handler of the RequestStart client-side event. Fired when the SmartPasteButton begins processing a paste operation.

C#
public SmartPasteButtonEventBuilder RequestStart(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the RequestStart event.

Returns:

SmartPasteButtonEventBuilder