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

    Hi,


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

            </telerik:RadScriptManager>

     

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

                            </telerik:RadTextBox>

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

                                    

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

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

                    Validation-ValidationGroup="ValidationSummary1">

                        <TargetControls>

                            <telerik:TargetInput ControlID="txtName" />

                        </TargetControls>

                    </telerik:TextBoxSetting>

      </telerik:RadInputManager>

    <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.

    Regards

    Ravi

    mcamail2002@gmail.com

  2. Tsvetina
    Admin
    Tsvetina avatar
    1873 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,
    Tsvetina
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top