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

DateTimePicker invalidate field

0 Answers 19 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 27 Feb 2017, 11:13 AM

Hey,

im trying to have the same style to show the user that an input is invalid. Im using a RadTextBox, a RadNumericTextBox and a DateTimePicker with asp:CustomValidator each. For the two text boxes i can set

textbox.Invalid = true

but there is no such property in the DateTimePicker. I like the red border with the red exclamation mark in the text boxes and would like to use them for the DateTimePicker, too, but the only thing that works for me right now is to set an ErrorMessage for the Validator.

Do I fail to see how this works? Because there are forum threads asking for a way to not mark the field like I want to.

Greetings

Felix

No answers yet. Maybe you can help?

Tags
DateTimePicker
Asked by
Felix
Top achievements
Rank 1
Share this question
or