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

Custom Appointment Class and Different Binding Field

4 Answers 176 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yves
Top achievements
Rank 1
Yves asked on 06 Jan 2012, 02:56 AM
Dear all,

I would like to use a class that implements the IAppointment interface because I would like to store additional information, other than just StartDate, EndDate, etc.

The problem I have is that I haven't found yet a way to bind the RadCalendar to other field than Subject (using {Binding DetailText}) or getting the day number (when I try {Binding Text}).
For example, in my class I have a field named "MeetingRoom", and would like to use it in my template.

Do you have a sample on how to achieve this ?

Thanks a lot for your help
Best Regards
Yves

4 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 06 Jan 2012, 10:18 AM
Hi,

This is the expected behavior. The DataContext of each calendar item is an object instance of the CalendarButtonContentInfo class. To bind to your apointments you need to use the Appointments property with a Binding converter to get the values you want.

Please let us know if you need more help on this.

Kind regards, Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Einar
Top achievements
Rank 1
answered on 12 Nov 2013, 02:03 PM
Can you show me a demo of how this is achieved, it would be well appreciated.

Regards,
A man that's bad at XAML
0
Todor
Telerik team
answered on 15 Nov 2013, 12:37 PM
Hi Einar,

Thank you for writing.

I have attached an example illustrating how you can display custom information from the appointments by using a converter.

I hope this information helps.
 
Regards,
Todor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
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
Einar
Top achievements
Rank 1
answered on 22 Nov 2013, 01:35 PM
Thank you, that was exactly what I needed
Tags
Calendar
Asked by
Yves
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Einar
Top achievements
Rank 1
Todor
Telerik team
Share this question
or