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

Validate the raddatetimepicker control based on the checkbox value

1 Answer 19 Views
Input
This is a migrated thread and some comments may be shown as answers.
Brew Hutch
Top achievements
Rank 1
Brew Hutch asked on 04 Nov 2010, 05:51 PM
Hello,
I have a simple form consisting of :
- raddatetimepicker
- checkbox

I want to validate raddatetimepicker to see whether or not the user enters the date& time when the checkbox control is checked.
If the checkbox is unchecked, no validation is occurred.

How do I accomplished this?

Thanks
Brew

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 05 Nov 2010, 06:45 AM
Hello Brew,


You could use the CustomValidator control to validate in this case. Access the CheckBox and RadDateTimePicker from the ClientValidationFunction and check for whether user had entered something.

Documents which helps you to access the RadDateTimePicker from client side:
Client-Side Basics
RadDateTimePicker Client Object


-Shinu.
Tags
Input
Asked by
Brew Hutch
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or