RadInputManager+TextBoxSetting+Validation is not working with RadTextBox

2 posts, 0 answers
  1. Ravi Kumar
    Ravi Kumar avatar
    37 posts
    Member since:
    May 2010

    Posted 03 Jun 2010 Link to this post


    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">



    <telerik:RadTextBox ID="txtName" runat="server">


    <telerik:RadInputManager ID="RadInputManager1" runat="server">


                    <telerik:TextBoxSetting BehaviorID="NameBehavior" EmptyMessage="Empty!"

                    ErrorMessage="Error!" Validation-IsRequired="true"



                            <telerik:TargetInput ControlID="txtName" />




    <asp:Button ID="Button1" runat="server" ValidationGroup="ValidationSummary1" Text="Postback" class="qsfButton"></asp:Button>

    Validation is not working.Could we use validation summay control to show message in popup.




  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 03 Jun 2010 Link to this post

    Hello Ravi Kumar,

    The problem in this situation is that you should not have a RadInputManager when you use RadTextBox. RadInputManager would be used to extend a standard ASP.NET TextBox. For further information, you can check this help topic. RadTextBox has all the properties you need in your scenario. Here is another topic you can read on the subject concerning the properties of RadInput controls.

    It is up to you to choose whether you want to remove the RadInputManager and use RadTextBox on its own, or the other way around - replace RadTextBox with a standard TextBox.
    I hope this information helps.

    All the best,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top