This is a migrated thread and some comments may be shown as answers.

CurrentDate style question

4 Answers 35 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 17 Jan 2014, 08:39 PM
Hi,

I'm using a WeekViewDefinition and I format the columns headers to display only the day of the week. The column representing the current date is sourrounded with a different color and I would like cancel this behaviour to have the style of my column the same as they other columns.

Thank's
Alain

4 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 22 Jan 2014, 11:54 AM
Hi Alain,

You can achieve the desired appearance by extracting and modifying the default ControlTemplate of the GroupHeaders (you need to remove the VisualStates for Today and TodayHorizontal). You can implement a custom GroupHeaderStyleSelector which will be returning a Style with the edited ControlTemplate when you are in WeekViewDefinition. I have prepared and attached here a sample project which demonstrates the exact approach.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Christie Admin
Top achievements
Rank 1
answered on 22 Jan 2014, 06:21 PM
Hi Kalin,

almost done except one thing, with the Office 2013 theme, vertical lines dissapeared!!!

Thank's
Alain
0
Accepted
Kalin
Telerik team
answered on 24 Jan 2014, 02:25 PM
Hi Alain,

I have modified the same project in order to use the Office2013 theme. In my previous post I missed to mention that you also need to set the IsToday property of the GroupHeaderButton named Header to False.

Hope this works for you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Christie Admin
Top achievements
Rank 1
answered on 24 Jan 2014, 02:41 PM
Hi Kalin,

perfect, thank you :)

Alain
Tags
ScheduleView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Christie Admin
Top achievements
Rank 1
Share this question
or