This is a migrated thread and some comments may be shown as answers.

RadInputManager+TextBoxSetting+Validation is not working with RadTextBox

1 Answer 219 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ravi Kumar
Top achievements
Rank 1
Ravi Kumar asked on 03 Jun 2010, 07:47 AM

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

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Jun 2010, 03:00 PM
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.
Tags
Input
Asked by
Ravi Kumar
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or