Extension methods for IInputComponent.
Definition
Namespace:Kendo.Mvc.Extensions
Assembly:Kendo.Mvc.dll
Syntax:
C#
public static class InputComponentExtensions
Inheritance: objectInputComponentExtensions
Inherited Members
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
The input component instance.
Returns: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
The input component instance.
converterFunc<object, T?>A function to convert the value from ViewData.
Returns:T?
The value, or null if not found.