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

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

Definition

Constructors

Initializes a new instance of the ResponsivePanelEventBuilder class.

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

The ResponsivePanel event handlers.

Methods

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

C#
public ResponsivePanelEventBuilder Close(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ResponsivePanelEventBuilder

Returns the current instance of ResponsivePanelEventBuilder .

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Events(events =&gt; events.Close(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

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

Returns the current instance of 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(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ResponsivePanelEventBuilder

Returns the current instance of ResponsivePanelEventBuilder .

Example:
C#
@( Html.Kendo().ResponsivePanel()
.Name("sidebar")
.Events(events =&gt; events.Open(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&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

Returns the current instance of ResponsivePanelEventBuilder .

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