Welcome Guest Search | Active Topics | Sign In | Register

DatePicker: Control styles of outer TDs of layout table Options
Saed
Posted: Tuesday, March 24, 2009 3:53:36 AM
Rank: Advanced Member
Groups: Member

Joined: 10/15/2008
Posts: 45
Hi,
We have a couple of DPs inserted inside every row of an ASP GridView. Grid styles are implemented via defining styles for Grid's TR and TD.

Code: CSS
.aspGridView     {
                          ...
}
.aspGridView tr  {
                          ...
}
.aspGridView td  {
                          ...
}


However, said styles became inherited by the two outer TDs of each DP; the one holding TextBox and the one with PopupImage. We tried every possible Style property in DP to get rid of that, without luck. BTW, we are customising all DP entities:

Code: Visual Basic.NET
thisDP.PickerStyle.CssClass = "dpTextBox"
thisDP.CalendarStyle.CssClass = "dpCalendar"
thisDP.TitleStyle.CssClass = "dpCalTitle"
thisDP.DayHeaderStyle.CssClass = "dpCalDay_Hdr"
thisDP.MonthStyle.CssClass = "dpCalMonth"
thisDP.MonthTitleStyle.CssClass = "dpCalTitle"
thisDP.DayStyle.CssClass = "dpCalDay_Entry"
thisDP.TodayStyle.CssClass = "dpCalDay_Today"
thisDP.OtherMonthDayStyle.CssClass = "dpCalDay_Disabled"

thisDP.SelectedDayStyle.CssClass = "dpCalDay_Selected"
thisDP.DayHoverStyle.CssClass = "dpCalDay_Hover"


Could you please indicate how to access those TDs or at least the outer table of DP?

Regards,





Saed Hamdan
"Man may be destroyed but not defeated" -Hemmingway
eo_support
Posted: Tuesday, March 24, 2009 8:59:46 AM
Rank: Administration
Groups: Administration

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

The cleanest way is to change your style rules. The root of the problem is that you have a style rule that affects more than what you intended to. You could spend all the time to fix this issue on the Calendar/DatePicker and tomorrow you would find it affects something else you did not intend to.

Thanks


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.