All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
asp:CompareValidator
ID
=
"dateCompareValidator"
runat
"server"
ControlToValidate
"RadMonthYearPicker2"
ControlToCompare
"RadMonthYearPicker1"
Operator
"GreaterThan"
Type
"Date"
ErrorMessage="The second date must be after the first one.<br /><
br
/>">
</
>
<script type=
"text/javascript"
function
OnDateSelected(sender, args) {
var
Month1 = $find(
'<%=RadMonthYearPicker1.ClientID %>'
);
date1 = Month1.get_dateInput().get_selectedDate().getMonth();
date2 = sender.get_dateInput().get_selectedDate().getMonth();
if
(date2 < date1) {
alert(
"The second date must be after the first one"
sender.clear();
}
</script>