How to Make DayTemplate.

5 posts, 1 answers
  1. Jun
    Jun avatar
    30 posts
    Member since:
    May 2013

    Posted 30 Dec 2013 Link to this post

    I have question.

    sorry. i'm beginner and I'm not good at English .

    I wnat Same Attach Picture

    Simple Source Please.


  2. Answer
    Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 30 Dec 2013 Link to this post

    Hello Jun,

    Thank you for contacting us.

    In order to achieve the behavior from your picture you need to create a custom DayTemplateSelector which should return different DataTemplate for each day according to your daily forecast data. We've prepared and attached a sample project which demonstrates this approach. Please take a look and if you have any further questions don't hesitate to contact us again.

    Regards,
    Ventzi
    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. Jun
    Jun avatar
    30 posts
    Member since:
    May 2013

    Posted 30 Dec 2013 Link to this post

    Thank You!!!!!!!!
  4. Grzesiek
    Grzesiek avatar
    105 posts
    Member since:
    Jun 2007

    Posted 27 Sep 2019 Link to this post

    Hello,

    I have some problem. This example works fine, but tell please how can I bind in DayTemplate the degrees in this example? I have my own ViewModel class.

  5. Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    72 posts

    Posted 30 Sep 2019 Link to this post

    Hello Grzegorz,

    You can achieve that by creating a MultiValueConverter and binding it to two properties - the Date of the CalendarButtonContent and the DataCollection (the collection holding the viewmodels with the temperature values)This way you can match a specific date with a specific value.

    I've updated the example. Please, review it and let me know if it delivered the desired result.

    Regards,
    Dimitar Dinev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top