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

RadInputManager and RadTextBox

1 Answer 189 Views
Input
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 07 Apr 2009, 12:13 PM
Is there a way to use the validation functionality of the RadInputManager for the RadTextBox?

I've been trying to implement a "Required" validation for the RadTextBox without having to manually add RequiredFieldValidators, because we have web pages with many RadTextBoxes.
I've been partially succesfull in implementing a own CompositeControl which dynamically adds the RadTextBox and the RequiredFieldValidator. I'm not sure if this is a definite solution because of many problems I encountered. Because of these problems I started researching the RadInputManager as an alternative.

The post on Todd Anglin's blog: http://blogs.telerik.com/toddanglin/posts/08-12-12/Showing_RadToolTip_on_RadInput_input_error.aspx looks like the solution I need, except that it should work for RadTextBox.

Thanks in advance for your help,

Peter



1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Apr 2009, 07:15 AM

Hello Peter,

Incase you rely on the implemenation of your composite control, you can indeed implement something similar to the validation mechanism you found in the blog post.

Alternatively, you can simply replace the RadTextBox instances with regular MS TextBox controls and 'inputify' them using our RadInputManager control. To make the textboxes required, merely set the respective TextBoxSetting of the manager with IsRequired = true.

Best regards,

Sebastian

the Telerik team


Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Peter
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or