This is a migrated thread and some comments may be shown as answers.
EmptyMessageStyle does not work the first time?
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 22 Jun 2009, 06:19 PM
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>  
                      

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 25 Jun 2009, 08:50 AM
Hi Neeraj,

The provided control declaration works as expected on my side - the emptystyle red border is always applied when it should. Can you please provide a complete sample page, so that we can test further?

All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Asked by
Neeraj
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or