CreateNew() appointment returns nothing

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    101 posts
    Member since:
    Apr 2014

    Posted 05 Mar 2015 Link to this post

    CreateNew returns nothing, appointmentcreating event not fired.

    All assemblies referenced per documentation.  

    I also tried setting an appointment source in code as follows with no effect:

    ScheduleView.AppointmentsSource = New List(Of IAppointment)

    in xaml:

    <telerik:RadScheduleView Name="ScheduleView" Margin="20">
                <telerik:RadScheduleView.ViewDefinitions>
                    <telerik:MonthViewDefinition  />
                    <telerik:DayViewDefinition />
                    <telerik:WeekViewDefinition />
                </telerik:RadScheduleView.ViewDefinitions>
    </telerik:RadScheduleView>

    in code behind (loaded event):

            Dim appointment As IAppointment = ScheduleView.CreateNew()
            If appointment IsNot Nothing Then
                appointment.Start = DateTime.Now
                appointment.End = DateTime.Now.AddHours(1)
                appointment.Subject = "New appointment"
                ScheduleView.Commit()
            End If









  2. Kenneth
    Kenneth avatar
    101 posts
    Member since:
    Apr 2014

    Posted 05 Mar 2015 in reply to Kenneth Link to this post

    OK, a duh moment.

    ScheduleView.AppointmentsSource = New ObservableCollection(Of Appointment)

    That is, Appointment not IAppointment.
  3. DevCraft banner
Back to Top