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

AppointmentSlot class

2 Answers 67 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Forest
Top achievements
Rank 1
Forest asked on 12 Jul 2011, 04:53 PM
Hi

I'm doing Migration from RadScheduler

I used AppointmentSlot class from Scheduler.dll like this :

private void deleteButton_Click(object sender, RoutedEventArgs e)
{
    AppointmentSlot slot = (AppointmentSlot)((Button)sender).DataContext;
    if (slot != null && slot.Occurrence.Appointment != null)
      //......
}

But AppointmentSlot class is not present in scheduleView.dll

What can i do in order to get the appointment from the slot ?

Mathieu

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 15 Jul 2011, 09:46 AM
Hello Forest,

RadScheduleView does not have equivalent class to AppointmentSlot. If you send us more information about the problem that you are resolving with AppointmentSlot we can provide a proper advice.

All the best,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Forest
Top achievements
Rank 1
answered on 21 Jul 2011, 10:36 AM
Hello

It's ok. I used AppointmentItemProxy : 

private void deleteButton_Click(object sender, RoutedEventArgs e)
{
     AppointmentItemProxy slot = (AppointmentItemProxy)((Button)sender).DataContext;
     if (slot != null)
         _currentViewModel.AppointmentList.Remove(slot.Appointment as RequestAppointment);
}
Tags
ScheduleView
Asked by
Forest
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Forest
Top achievements
Rank 1
Share this question
or