Office2007 skin

InputManager - Client-side Events

Event log

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB
RadInputManager exposes a the following set of client-side events:
  1. OnBlur - fired when the input control loses focus
  2. OnError - fired when the user enters invalid data
  3. OnFocus - fired when the input control gains focus
  4. OnKeyPress - fired when a keyboard key is pressed
  5. OnValueChanged - fired when the data entry in the input is changed by the user (right after the control loses focus)

Related Resources

  • DefaultVB.aspx
  • scripts.js
  • styles.css
<%@ Page Language="vb"  %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script src="scripts.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="styles.css" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container">
            <div class="contentContainer">
                <asp:Label ID="Label1" runat="server" AssociatedControlID="TextBox1" Text="TextBoxSetting"></asp:Label>
                <asp:TextBox ID="TextBox1" runat="server" Width="155px"/>
                <br />
                <br />
                <asp:Label ID="Label2" runat="server" AssociatedControlID="TextBox2" Text="NumericTextBoxSetting"></asp:Label>
                <asp:TextBox ID="TextBox2" runat="server" Width="155px"/>

    <telerik:RadInputManager RenderMode="Lightweight" runat="server" ID="RadInputManager1">
        <telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" EmptyMessage="Enter some text">
            <ClientEvents OnKeyPress="demo.keyPress" OnBlur="demo.blur" OnFocus="demo.focus"/>
                <telerik:TargetInput ControlID="TextBox1" />
        <telerik:NumericTextBoxSetting BehaviorID="NumericTextBoxBehavior1" MinValue="0" MaxValue="10" EmptyMessage="Enter some number">
            <ClientEvents OnKeyPress="demo.keyPress" OnBlur="demo.blur" OnFocus="demo.focus" OnError="demo.error"/>
                <telerik:TargetInput ControlID="TextBox2" />

    <qsf:EventLogConsole runat="server" ID="EventLogConsole1" AllowClear="true"></qsf:EventLogConsole>

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?