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

ScheduleView: Not able to bind Url, Location, Body Properties in Appointment Item Template

1 Answer 26 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ayush
Top achievements
Rank 1
Ayush asked on 28 Apr 2011, 05:10 PM

I am using ScheduleView.

I am not able to bind Url, Location, Body Properties in AppointmentItemTemplate, AppointmentItemVerticalControlTemplate, and AppointmentItemHorizontalControlTemplate.

I am able to bind Subject, End, Start etc. but not Url, Location, Body Properties etc.

Do we have any event for ScheduleView, where we can catch data template and work with data on every item bound. (Item Data Bound kind of event)

Any help will be appreciated.


1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 04 May 2011, 07:01 AM
Hi Ayush,

Events in WPF are pretty evil. Well not all events but at least those used to mimic bindings. I suppose they are ok for winforms...

You can create a binding and a simple IValueConverter to use in that binding. Then put a break point in the converter and bind a property in your DataTemplate using the converter. Like <TextBlock Text="{Binding Converter={StaticResource MyDebugConverter}}" /> and in the Convert method of the coverter you will be able to observ the DataContext and find what you can bind to. Luckily they promise breakpoints to work in XAML one day.

For the templates you are editing I think there are AppointmentProxy objects that are created for optimization purpoes and expose the basic appointment properties. However the one you mention you have to bind through an Apointment reference like "{Binding Appointment.Subject}".

All the best,
Pana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Ayush
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or