WindowEventBuilder
Defines the fluent API for configuring the Kendo UI Window for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class WindowEventBuilder : EventBuilder
Inheritance: objectEventBuilderWindowEventBuilder
Inherited Members
Constructors
Initializes a new instance of the WindowEventBuilder class.
public WindowEventBuilder(IDictionary<string, object> events)
The Window event handlers.
Methods
Defines the handler of the Activate client-side event. Triggered when a Window has finished its opening animation.
public WindowEventBuilder Activate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Activate client-side event. Triggered when a Window has finished its opening animation.
public WindowEventBuilder Activate(string handler)
The name of the JavaScript function that will handle the Activate event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Close client-side event. Triggered when a Window is closed either by the user or through the close() method.
public WindowEventBuilder Close(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Close client-side event. Triggered when a Window is closed either by the user or through the close() method.
public WindowEventBuilder Close(string handler)
The name of the JavaScript function that will handle the Close event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Deactivate client-side event. Triggered when a Window has finished its closing animation.
public WindowEventBuilder Deactivate(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Deactivate client-side event. Triggered when a Window has finished its closing animation.
public WindowEventBuilder Deactivate(string handler)
The name of the JavaScript function that will handle the Deactivate event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the DragEnd client-side event. Triggered when a Window has been moved by the user.
public WindowEventBuilder DragEnd(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the DragEnd client-side event. Triggered when a Window has been moved by the user.
public WindowEventBuilder DragEnd(string handler)
The name of the JavaScript function that will handle the DragEnd event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the DragStart client-side event. Triggered when the user starts to move the Window.
public WindowEventBuilder DragStart(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the DragStart client-side event. Triggered when the user starts to move the Window.
public WindowEventBuilder DragStart(string handler)
The name of the JavaScript function that will handle the DragStart event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Error client-side event. Triggered when an Ajax request for content fails.
public WindowEventBuilder Error(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Error client-side event. Triggered when an Ajax request for content fails.
public WindowEventBuilder Error(string handler)
The name of the JavaScript function that will handle the Error event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Window is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public WindowEventBuilder KendoKeydown(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the Window is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public WindowEventBuilder KendoKeydown(string handler)
The name of the JavaScript function that will handle the KendoKeydown event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Maximize client-side event. Triggered when the user maximizes the Window. Introduced in 2016.Q1.SP1.
public WindowEventBuilder Maximize(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Maximize client-side event. Triggered when the user maximizes the Window. Introduced in 2016.Q1.SP1.
public WindowEventBuilder Maximize(string handler)
The name of the JavaScript function that will handle the Maximize event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Minimize client-side event. Triggered when the user minimizes the Window. Introduced in 2016.Q1.SP1.
public WindowEventBuilder Minimize(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Minimize client-side event. Triggered when the user minimizes the Window. Introduced in 2016.Q1.SP1.
public WindowEventBuilder Minimize(string handler)
The name of the JavaScript function that will handle the Minimize event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Open client-side event. Triggered when a Window is opened, that is, when the open() method is called.
public WindowEventBuilder Open(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Open client-side event. Triggered when a Window is opened, that is, when the open() method is called.
public WindowEventBuilder Open(string handler)
The name of the JavaScript function that will handle the Open event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Refresh client-side event. Triggered when the content of a Window has finished loading via Ajax, when the Window iframe has finished loading, or when the Refresh button has been clicked on a Window with static content.
public WindowEventBuilder Refresh(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Refresh client-side event. Triggered when the content of a Window has finished loading via Ajax, when the Window iframe has finished loading, or when the Refresh button has been clicked on a Window with static content.
public WindowEventBuilder Refresh(string handler)
The name of the JavaScript function that will handle the Refresh event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Resize client-side event. Triggered when the user resizes the Window.
public WindowEventBuilder Resize(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Resize client-side event. Triggered when the user resizes the Window.
public WindowEventBuilder Resize(string handler)
The name of the JavaScript function that will handle the Resize event.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Restore client-side event. Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the restore() method is called.
public WindowEventBuilder Restore(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of WindowEventBuilder .
Defines the handler of the Restore client-side event. Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the restore() method is called.
public WindowEventBuilder Restore(string handler)
The name of the JavaScript function that will handle the Restore event.
Returns:Returns the current instance of WindowEventBuilder .