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

Disable RadDatePicker until another RadDatePicker receives input

1 Answer 49 Views
Input
This is a migrated thread and some comments may be shown as answers.
Raulis
Top achievements
Rank 1
Raulis asked on 08 Sep 2016, 09:15 AM

I have two RadDatePicker's. One holds a "date sent" value and another one a "date paid". The date sent value has to be before the date paid AND the date paid RadDatePicker has to be disabled until a date sent value has been set in a form. How would I achieve this? I thought a CompareValidator on the second control would prevent postback if the first input is empty but it seems that's not the case.

 

FYI I cannot use client side scripts on the same aspx page. I have a separate JavaScript folder that holds all my scripts and I cannot call $find("<%=RadDatePicker1.ClientID%>") . 

 

Help would be greatly appreciated. 

1 Answer, 1 is accepted

Sort by
0
Raulis
Top achievements
Rank 1
answered on 08 Sep 2016, 12:09 PM
Found a solution myself, don't worry about it.
Tags
Input
Asked by
Raulis
Top achievements
Rank 1
Answers by
Raulis
Top achievements
Rank 1
Share this question
or