AppointmentSlot class

3 posts, 0 answers
  1. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 12 Jul 2011 Link to this post

    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. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Jul 2011 Link to this post

    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!

  3. Forest
    Forest avatar
    72 posts
    Member since:
    Aug 2010

    Posted 21 Jul 2011 Link to this post

    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);
    }
Back to Top