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

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

Definition

Constructors

Initializes a new instance of the AppBarEventBuilder class.

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

The AppBar event handlers.

Methods

Defines the handler of the Resize client-side event. Fired when the window is resized.

C#
public AppBarEventBuilder Resize(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

AppBarEventBuilder

Returns the current instance of AppBarEventBuilder .

Example:
C#
@(Html.Kendo().AppBar()
.Name("AppBar")
.Events(events =&gt; events
.Resize(@&lt;text&gt;
function() {
// Handle event.
}
&lt;/text&gt;)
)
)

Defines the handler of the Resize client-side event. Fired when the window is resized.

C#
public AppBarEventBuilder Resize(string handler)
Parameters:handlerstring

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

Returns:

AppBarEventBuilder

Returns the current instance of AppBarEventBuilder .

Example:
C#
@(Html.Kendo().AppBar()
.Name("AppBar")
.Events(events =&gt; events
.Resize("onResize")
)
)