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

Extension methods for IInputComponent.

Definition

Namespace:Kendo.Mvc.Extensions

Assembly:Kendo.Mvc.dll

Syntax:

C#
public static class InputComponentExtensions

Inheritance: objectInputComponentExtensions

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Methods

Gets the attempted value from model state for the input component.

C#
public static string GetAttemptedValue<T>(this IInputComponent<T> instance) where T : struct
Parameters:instanceIInputComponent<T>

The input component instance.

Returns:

string

The attempted value as a string, or null if not found.

Gets the value for the input component from various sources.

C#
public static T? GetValue<T>(this IInputComponent<T> instance, Func<object, T?> converter) where T : struct
Parameters:instanceIInputComponent<T>

The input component instance.

converterFunc<object, T?>

A function to convert the value from ViewData.

Returns:

T?

The value, or null if not found.