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

How to Make DayTemplate.

4 Answers 40 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jun
Top achievements
Rank 1
Jun asked on 30 Dec 2013, 06:58 AM
I have question.

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

I wnat Same Attach Picture

Simple Source Please.


4 Answers, 1 is accepted

Sort by
0
Accepted
Ventzi
Telerik team
answered on 30 Dec 2013, 02:30 PM
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 >>
0
Jun
Top achievements
Rank 1
answered on 30 Dec 2013, 11:16 PM
Thank You!!!!!!!!
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 27 Sep 2019, 06:46 AM

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.

0
Dimitar Dinev
Telerik team
answered on 30 Sep 2019, 03:13 PM

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.
Tags
Calendar
Asked by
Jun
Top achievements
Rank 1
Answers by
Ventzi
Telerik team
Jun
Top achievements
Rank 1
Grzesiek
Top achievements
Rank 2
Iron
Dimitar Dinev
Telerik team
Share this question
or