This question is locked. New answers and comments are not allowed.
hi im using the rad date picker from the below code. every thing works fine. but in validation im using the javascript.
i just need to hide this and make the background as red on validation.
e.g im using javascript
<
telerik:RadDatePicker
ID
=
"radPublishDate"
runat
=
"server"
Style="margin-left: 0px;
z-index: 11000000000000;"
ClientEvents-OnPopupOpening
=
"PopupOpening"
Height
=
"12px"
Width
=
"100px"
Culture
=
"English (United States)"
Skin
=
"Office2007"
EnableMultiSelect
=
"false"
>
<
DateInput
ID
=
"publishDateInput"
runat
=
"server"
Height
=
"14px"
DateFormat
=
"MM/dd/yyyy"
DisplayDateFormat
=
"MM/dd/yyyy"
>
</
DateInput
><
Calendar
ID
=
"Calendar1"
Skin
=
"Office2007"
UseColumnHeadersAsSelectors
=
"False"
runat
=
"server"
UseRowHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
ToolTip
=
"Select Date"
ShowRowHeaders
=
"false"
>
</
Calendar
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/>
</
telerik:RadDatePicker
>
i just need to hide this and make the background as red on validation.
e.g im using javascript
$(
'ctl00_ContentPlaceHolder1_ucNote1_radPublishDate').SelectedDate == null - is not working
$('ctl00_ContentPlaceHolder1_ucNote1_radPublishDate').style.visibility = 'hidden' - is not working
$('ctl00_ContentPlaceHolder1_ucNote1_radPublishDate').style.backgroundcolor = '#FF9F9F' -not working
please let me know the correct properties to achive these functionalites.