I have a raddatepicker and I am trying to make the border - "red" if it is left empty. It only works when user tries to pick the date the second time and leave it empty not the first one i.e. we have to have the focus twice and only then it works. I got the latest dlls but still I cannot solve the problem. Can someone please tell me what am I doing wrong ?
<telerik:RadDatePicker ID="radBillPeriodStartDate1" Skin="Office2007" Style="vertical-align: middle;" |
runat="server" |
DbSelectedDate='<%# Bind("BEGIN_BILLING_PERIOD", "{0:d}") %>' |
MinDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMin"].ToString()))%>' |
MaxDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMax"].ToString()))%>' |
> |
<Calendar ShowRowHeaders="false"> |
<OutOfRangeDayStyle Font-Strikeout="true" ForeColor="red" /> |
</Calendar> |
<DateInput ID="DateInput1" runat="server" InvalidStyle-BorderColor="red" InvalidStyle-ForeColor="red" EmptyMessageStyle-BorderColor="red" EmptyMessage=" "> |
<EmptyMessageStyle BorderColor="red" /> |
<ClientEvents OnKeyPress="disableEnterKey" /> |
</DateInput> |
</telerik:RadDatePicker> |