DialogEventBuilder
Defines the fluent API for configuring the Kendo UI Dialog for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DialogEventBuilder : EventBuilder
Inheritance: objectEventBuilderDialogEventBuilder
Inherited Members
Constructors
Initializes a new instance of the DialogEventBuilder class.
public DialogEventBuilder(IDictionary<string, object> events)
The Dialog event handlers.
Methods
Defines the handler of the Close client-side event. Triggered when a Dialog is closed (by a user or through the close() method).
public DialogEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Close client-side event. Triggered when a Dialog is closed (by a user or through the close() method).
public DialogEventBuilder Close(string handler)
The name of the JavaScript function that will handle the Close event.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Hide client-side event. Triggered when a Dialog has finished its closing animation.
public DialogEventBuilder Hide(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Hide client-side event. Triggered when a Dialog has finished its closing animation.
public DialogEventBuilder Hide(string handler)
The name of the JavaScript function that will handle the Hide event.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the InitOpen client-side event. Triggered when a Dialog is opened for the first time (i.e. the open() method is called).
public DialogEventBuilder InitOpen(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the InitOpen client-side event. Triggered when a Dialog is opened for the first time (i.e. the open() method is called).
public DialogEventBuilder InitOpen(string handler)
The name of the JavaScript function that will handle the InitOpen event.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Dialog is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public DialogEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Dialog is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public DialogEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Open client-side event. Triggered when a Dialog is opened (i.e. the open() method is called).
public DialogEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Open client-side event. Triggered when a Dialog is opened (i.e. the open() method is called).
public DialogEventBuilder Open(string handler)
The name of the JavaScript function that will handle the Open event.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Show client-side event. Triggered when a Dialog has finished its opening animation.
public DialogEventBuilder Show(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of DialogEventBuilder .
Defines the handler of the Show client-side event. Triggered when a Dialog has finished its opening animation.
public DialogEventBuilder Show(string handler)
The name of the JavaScript function that will handle the Show event.
Returns:Returns the current instance of DialogEventBuilder .