Lucas Bailey
Top achievements
Rank 1
Lucas Bailey
asked on 14 May 2008, 02:43 PM
In an existing application in development, I have several standard ASP Textboxes with various validators. I added a RadDatePicker to the form. The client likes that when an invalid string is entered into the DatePicker, the text box portion is highlighted in red and the error graphic is displayed. Is there any way to wire a RadTextBox to a standard .Net validator so the RadTextBox also displays this look on an error?
5 Answers, 1 is accepted
0
Hi Lucas,
The OnError style is specific to the MaskedTextBox, NumericTextBox and RadDateInput controls, because they have predefined format and expect specific data only. RadTextBox on the other hand is a free form entry control and there is no limitation to what characters you can enter and therefore there is no "invalid input".
Sincerely yours,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The OnError style is specific to the MaskedTextBox, NumericTextBox and RadDateInput controls, because they have predefined format and expect specific data only. RadTextBox on the other hand is a free form entry control and there is no limitation to what characters you can enter and therefore there is no "invalid input".
Sincerely yours,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Lucas Bailey
Top achievements
Rank 1
answered on 14 May 2008, 03:36 PM
Any suggestions on how to mimic this behavior on a RadTextBox? The application will most likely be using Masked & Numeric Text Boxes, so having some controls display a different validation 'look' is not desired.
0
Hi Lucas,
We've answered your inquiry in the support ticket you've opened. We kindly ask you to refrain from opening different threads on the same matter as this only slows us down.
Thank you for the understanding on the matter.
Regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We've answered your inquiry in the support ticket you've opened. We kindly ask you to refrain from opening different threads on the same matter as this only slows us down.
Thank you for the understanding on the matter.
Regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Erick
Top achievements
Rank 1
answered on 19 Jun 2008, 05:21 PM
Steve,
Is there any way to share your answer here?
Is there any way to share your answer here?
0
Lucas Bailey
Top achievements
Rank 1
answered on 19 Jun 2008, 05:27 PM
Erick,
The telerik RadInput controls have a property called Invalid that can be set via javascript. Then you call the control's UpdateCssClass() function in javascript to change it's appearance.
I extended a .Net validator to allow for a custom validation function that did the above.
The telerik RadInput controls have a property called Invalid that can be set via javascript. Then you call the control's UpdateCssClass() function in javascript to change it's appearance.
I extended a .Net validator to allow for a custom validation function that did the above.