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

The RadInputManager offers an easy and intuitive way to extend a standard ASP.NET TextBox, and without any extra custom code, introduce much functionality, normally related to a Telerik RadInput control. For example, a standard text box control offers no default functionality for text parsing and validation – this has to be done via custom code, either client or server side. This input validation is normally associated with Telerik RadInput controls.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[EmbeddedSkin("Input", typeof(RadInputManager))]
[EmbeddedSkin("Input", "Default", typeof(RadInputManager))]
[ClientScriptResource("Telerik.Web.UI.RadInputManager", "Telerik.Web.UI.Calendar.RadPickersPopupDirectionEnumeration.js")]
[ClientScriptResource("Telerik.Web.UI.RadInputManager", "Telerik.Web.UI.Input.InputManager.RadInputManagerScript.js")]
[RequiredScript(typeof(RadTextBox))]
[RequiredScript(typeof(RadDateInput))]
[RequiredScript(typeof(RadNumericTextBox))]
[RequiredScript(typeof(RadMaskedTextBox))]
[RequiredScript(typeof(Core))]
[ToolboxBitmap(typeof(RadInputManager), "Toolbox.Icons.InputManager.png")]
[TelerikToolboxCategory("Data Editing")]
public class RadInputManager : InputManagerBase, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IScriptControl, IControlResolver, ISkinnableControl, IControl, INamingContainer

Inheritance: objectControlRadControlInputManagerBaseRadInputManager

Implements: IComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorINamingContainerIParserAccessorIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members Control.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.Render(HtmlTextWriter)Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.EnableThemingControl.IsChildControlStateClearedControl.SkinIDControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadInputManager()

Properties

Gets or sets a value indicating whether manager should be enabled or not.

C#
public virtual bool Enabled { get; set; }

Gets a collection of InputSetting objects that allows for specifying the objects for which input elements will be created on the client-side.

C#
[PersistenceMode(PersistenceMode.InnerDefaultProperty)]
public InputSettingsCollection InputSettings { get; }

Methods

C#
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()
Returns:

IEnumerable<ScriptDescriptor>

Overrides: RadControl.GetScriptDescriptors()

C#
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns:

IEnumerable<ScriptReference>

Overrides: RadControl.GetScriptReferences()

Finds the InputSetting by provided behaviorID.

C#
public InputSetting GetSettingByBehaviorID(string behaviorID)
Parameters:behaviorIDstring

The behaviorID.

Returns:

InputSetting

Finds the InputSetting by provided type.

C#
public List<InputSetting> GetSettingsByType(Type type)
Parameters:typeType

The type.

Returns:

List<InputSetting>

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: Control.LoadViewState(object)

C#
protected override void OnInit(EventArgs e)
Parameters:eEventArgs

Overrides: RadControl.OnInit(EventArgs)

C#
protected virtual void OnInputSettingCreating(InputSettingCreatingEventArgs args)
Parameters:argsInputSettingCreatingEventArgs
C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadControl.OnPreRender(EventArgs)

C#
protected virtual void RegisterCustomValidators()

Registers the control with the ScriptManager

C#
protected override void RegisterScriptControl()

Overrides: RadControl.RegisterScriptControl()

C#
protected override object SaveViewState()
Returns:

object

Overrides: Control.SaveViewState()

C#
protected virtual void SetStyleClasses(InputSetting inputSetting)
Parameters:inputSettingInputSetting
C#
protected override void TrackViewState()

Overrides: Control.TrackViewState()

Events

C#
public event RadInputManager.InputSettingCreatingDelegate InputSettingCreating
C#
public event RadInputManager.ValidatedDelegate Validated
C#
public event RadInputManager.ValidatingDelegate Validating