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

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

Definition

Constructors

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

Methods

Defines the handler of the Close client-side event. Triggered before the responsive panel is closed. Cancellable.

C#
public ResponsivePanelEventBuilder Close(string handler)
Parameters:handlerstring

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

Returns:

ResponsivePanelEventBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Events(e =&gt; e.Close("onClose"))
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)

Defines the handler of the Open client-side event. Triggered before the responsive panel is opened. Cancellable.

C#
public ResponsivePanelEventBuilder Open(string handler)
Parameters:handlerstring

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

Returns:

ResponsivePanelEventBuilder

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Events(e =&gt; e.Open("onOpen"))
.Content("&lt;strong&gt; First Item Content&lt;/strong&gt;")
)