Hi,
I have to disable rad datepicker if a checkbox is checked. if i uncheck the checkbox i have to enable the rad datepicker.. I am able to disable the date picker in all browsers. But i am not able to enable the same in firefox, chrome and safai.. it works in IE. Is there any solution to avoid this?
Thx
Esther
I have to disable rad datepicker if a checkbox is checked. if i uncheck the checkbox i have to enable the rad datepicker.. I am able to disable the date picker in all browsers. But i am not able to enable the same in firefox, chrome and safai.. it works in IE. Is there any solution to avoid this?
var CheckBoxNoExpiration = document.getElementById('<%= CheckBoxNoExpiration.ClientID %>');
var DatePicker = $find('<%= RadExpiryDate.ClientID %>');
var MandatoryMark = document.getElementById('<%= MandatoryMark.ClientID %>');
if (CheckBoxNoExpiration != null) {
if (CheckBoxNoExpiration.checked) {
if (MandatoryMark != null)
MandatoryMark.style.display = 'none';
DatePicker.get_dateInput().disable();
DatePicker.get_dateInput.onclick = function() { return false; };
//onKeyDown = "javascript:return false;"
DatePicker._popupButton.disabled = true;
DatePicker._popupButton.onclick = function() { return false; };
}
else {
if (MandatoryMark != null)
MandatoryMark.style.display = 'inline';
DatePicker.get_dateInput().enable();
DatePicker._popupButton.disabled = false;
DatePicker._popupButton.onclick = function() { DatePicker.togglePopup(); return false; };
}
}
Thx
Esther