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

RadTextBox + RadInputManager

8 Answers 95 Views
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 06 Jan 2012, 06:29 PM
Hello, 

I am able to use RadInputManager to validate required textbox controls, but it does not work with radtextbox controls. If a RadTextBox is left empty I would like a message to appear in the box with the exclamation mark. 

Is there any way to get this to work? I assumed the RadTextBox was a child of TextBox, but this may be false as this only works on a TextBox. 

This works on a textbox, but not a radtextbox :

 <telerik:RadInputManager ID="RadInputManager1" runat="server">
<telerik:TextBoxSetting ErrorMessage="Required">
      <Validation IsRequired="true"  />
           <TargetControls>
            <telerik:TargetInput ControlID="TextBox1" />
           </TargetControls>
     </telerik:TextBoxSetting>
    </telerik:RadInputManager>

Please advise 

8 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 09 Jan 2012, 06:33 AM
Hello,

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.Take a look into this documentation for more.

Thanks,
Princy.
0
Andrey
Telerik team
answered on 09 Jan 2012, 03:49 PM
Hello Michael,

As explained by Princy and in this help topic, RadInputManager is used to extend the default ASP.NET TextBox control and to save you a lot of custom written code.

For more information on how to use Validation with RadTextBox you could check this help topic and this online demo.

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Chris
Top achievements
Rank 1
answered on 09 Jan 2012, 05:07 PM
 -
0
Michael
Top achievements
Rank 1
answered on 09 Jan 2012, 05:36 PM
Hello, 

Yes I have seen that demo, but using RequiredFieldValidator is not as graceful as using the RadInputManager. 

As an example. how to I achieve the exclamation mark in an invalid RadTextBox similar to the one in a TextBox using RadInputManager?

Also placing all of my validation in one RadInputControl is much better than having RequiredFieldValidator controls scattered across the page. 

I would like to make a feature request for the future, if RadInputManager could be used to validate RadTextBox controls that would be very helpful. 

- Michael
0
Andrey
Telerik team
answered on 10 Jan 2012, 06:52 PM
Hi Michael,

If you don't like using RequiredFieldValidators to limit the input of RadTextBox, you could hook the OnError client event of RadTextBox and in its body to perform the required validation. More information about the event could be found in this help topic.

Additionally I will forward you request to our developer team for consideration.

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Merritt
Top achievements
Rank 1
answered on 02 Mar 2012, 09:22 PM
I second the request, and furthermore move to upgrade the status of this from a "possible improvement" to "missing functionality". If you want us to play with your toys, boys, make sure your toys play with themselves.
0
Andrey
Telerik team
answered on 05 Mar 2012, 04:26 PM
Hello,

We understand your concerns and we logged this request for consideration. However, I could not give you an estimation when this feature will be implemented. We will announce this feature in the release notes of the first release that will include it.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Yuvraj
Top achievements
Rank 1
answered on 27 Apr 2012, 12:43 PM
 <asp:TextBox ID="TextBox11" runat="server" /> 
 <telerik:RadInputManager ID="RadInputManager1" runat="server"> 
<telerik:RegExpTextBoxSetting BehaviorID="RagExpBehavior2" ErrorMessage="Enter Social Security Number here"
            Validation-IsRequired="true" ValidationExpression="\d{3}-\d{2}-\d{4}">
            <TargetControls>
                <telerik:TargetInput ControlID="TextBox11" />
            </TargetControls>
        </telerik:RegExpTextBoxSetting> 
 </telerik:RadInputManager> 


I Hope this Help U




Tags
Input
Asked by
Michael
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Andrey
Telerik team
Chris
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Merritt
Top achievements
Rank 1
Yuvraj
Top achievements
Rank 1
Share this question
or