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

Binding to an Interface

3 Answers 69 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
ryan
Top achievements
Rank 1
ryan asked on 09 Jun 2011, 03:54 PM
Is it possible to bind an instance of ScheduleView to an Interface?  It seams to mostly work but I can not get the new appoint dialog to open when i'm binding to a custom interface. 

Thanks,

Ryan

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 14 Jun 2011, 12:34 PM
Hello Ryan,

What do you mean by "bind an instance of ScheduleView to an Interface"? If you want to use your custom classes for AppointmentsSource, you need to implement the IAppointment interface and RadScheduleView will work fine.

All the best,
Valeri Hristov
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
0
ryan
Top achievements
Rank 1
answered on 14 Jun 2011, 02:43 PM
I'm displaying two different types of appointments on one schedule. one type shows how many people are needed to be working during a time frame (coverage needed) and the other show an employees shift.  the problem is that i need to handle editing the different types of appointments differently. my thought was if I was able to bind my schedule view appointment source to a List<IAppointment> that contained objects of two different classes that both implement IAppointment then i could check what the class of the appointment was when it was being edited and handle it accordingly.   in the time since i posted this I figured out that I can make both of my classes extend Appointment and bind my appointment source to a List<Appointment> then when the appointment is edited i can still tell if it is a shift appointment or a coverage needed appointment.  

So I really don't need an answer to this but I REALLY NEED an answer to this one http://www.telerik.com/community/forums/silverlight/scheduleview/ischedulerdialoghost.aspx. Since I'm not able to find any documentation on how to open a schedule dialog of any kind from code. Please help. 
0
Yana
Telerik team
answered on 14 Jun 2011, 03:42 PM
Hi Ryan,

I've just answered to the other thread here.

Kind regards,
Yana
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
ryan
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
ryan
Top achievements
Rank 1
Yana
Telerik team
Share this question
or