Welcome Guest Search | Active Topics | Sign In | Register

SelectedDate not working when using DisableTextBox on DatePicker Options
Jason S
Posted: Monday, March 30, 2009 8:57:16 PM
Rank: Member
Groups: Member

Joined: 5/30/2007
Posts: 23
Hello,

I am using a datepicker. I am using the DisableTextBox attribute for my datepickers, and when a date is selected, the date is shown correctly, but when clicking on the calendar and the calendar rendering again, the selected date is not being highlighted.

My EO.Web version is 5.0.59.2.

I can see in firebug that the date in question does not have the proper CSS class specified. This is in FF obviously, but the problem occurs in all browsers.

This is the setup I am using OnLoad for my datepickers(on date selection I can see that the date does not have the calendarSelectedDay class defined):

datePickerCtrl.DisableTextBox = True
datePickerCtrl.CssClass = "calendar"
datePickerCtrl.CalendarStyle.CssClass = "calendarStyle"
datePickerCtrl.TitleStyle.CssClass = "calendarTitle"
datePickerCtrl.DayStyle.CssClass = "calendarDay"
datePickerCtrl.DayHoverStyle.CssClass = "calendarDayHover"
datePickerCtrl.WeekendDayStyle.CssClass = "calendarDay"
datePickerCtrl.WeekendDayHoverStyle.CssClass = "calendarDayHover"
datePickerCtrl.SelectedDayStyle.CssClass = "calendarSelectedDay"
datePickerCtrl.DisabledDayStyle.CssClass = "calendarDisabledDay"
datePickerCtrl.OtherMonthDayStyle.CssClass = "calendarNoShowDay"
datePickerCtrl.TitleArrowHoverStyle.CssClass = "calendarArrowHover"
datePickerCtrl.FirstDayOfWeek = WebControls.FirstDayOfWeek.Sunday
datePickerCtrl.AllowMultiSelect = False
datePickerCtrl.DayHeaderFormat = DayNameFormat.FirstLetter
datePickerCtrl.DayCellWidth = 20
datePickerCtrl.DayCellHeight = 20
datePickerCtrl.DayCellSpacing = 5
datePickerCtrl.PopupOffsetX = 3
datePickerCtrl.MonthColumns = 1
datePickerCtrl.Width = 130
eo_support
Posted: Tuesday, March 31, 2009 8:43:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested your code on the latest version and it works fine. So you might want to try that. Also if you can include a full test page, we will be happy to look into it and see what we can find.

Thanks!
Jason S
Posted: Tuesday, April 7, 2009 3:28:27 PM
Rank: Member
Groups: Member

Joined: 5/30/2007
Posts: 23
Downloaded the latest build, and the problem was solved.

Thanks!
eo_support
Posted: Tuesday, April 7, 2009 3:50:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.