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

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

Definition

Constructors

Initializes a new instance of the ScrollViewEventBuilder class.

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

The ScrollView event handlers.

Methods

Defines the handler of the Change client-side event. Fires when the ScrollView page is changed.

C#
public ScrollViewEventBuilder Change(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

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

Defines the handler of the Change client-side event. Fires when the ScrollView page is changed.

C#
public ScrollViewEventBuilder Change(string handler)
Parameters:handlerstring

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

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

Example:
C#
@( Html.Kendo().ScrollView()
.Name("ScrollView")
.Events(events =&gt; events
.Change("onChange")
)
)

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ScrollView is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ScrollViewEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the ScrollView is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ScrollViewEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

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

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

Defines the handler of the Refresh client-side event. Fires when the ScrollView refreshes.

C#
public ScrollViewEventBuilder Refresh(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

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

Defines the handler of the Refresh client-side event. Fires when the ScrollView refreshes.

C#
public ScrollViewEventBuilder Refresh(string handler)
Parameters:handlerstring

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

Returns:

ScrollViewEventBuilder

Returns the current instance of ScrollViewEventBuilder .

Example:
C#
@( Html.Kendo().ScrollView()
.Name("ScrollView")
.Events(events =&gt; events
.Refresh("onRefresh")
)
)