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

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

Definition

Constructors

Initializes a new instance of the Filter class.

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

The client events.

Methods

Fired when the generated filter expression is changed.

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

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

Returns:

FilterEventBuilder

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

Defines the handler of the Change client-side event. Fired when the generated filter expression is changed.

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

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

Returns:

FilterEventBuilder

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

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

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

Returns:

FilterEventBuilder