Weeknumber monthview

3 posts, 1 answers
  1. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 25 Oct 2013 Link to this post

    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. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 29 Oct 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 29 Oct 2013 Link to this post

    Hurray!
    Thank you!
Back to Top