This is a migrated thread and some comments may be shown as answers.
Weeknumber monthview
2 Answers 21 Views
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 25 Oct 2013, 10:25 AM
Is there a way to show the weeknumber in the GroupHeaderDateStringFormat.

I can now show the days of the week like this:
GroupHeaderDateStringFormat="{}Week: {0:d MMM} - {1:d MMM}"

But I would like to have the weeknumber instead.
Or is there an other way to show the weeknumbers?

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 29 Oct 2013, 12:31 PM
Hi Rieni,

You could achieve the desired appearance of the GroupHeaders by editing the GroupHeaderContentTemplate for the MonthViewDefinition. This can be done by implementing a custom GroupHeaderContentTemplateSelector which replaces the MonthViewDefinition template with custom one with a TextBlock displaying the week number. For your convenience I have prepared and attached 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
Rieni De Rijke
Top achievements
Rank 1
answered on 29 Oct 2013, 02:10 PM
Hurray!
Thank you!
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Share this question
or