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

Using Open Item of radSchedulerReminder

1 Answer 96 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Gervert
Top achievements
Rank 1
Gervert asked on 15 Jun 2016, 10:34 AM

Hi.. this is Deo due to my personal telerik account didn't have any purchase of the product i ask my boss to help me with it and he created this account so i can post my issue on telerik winform..

 

Now the appointment is properly showing up on the radreminder my problem now is using the Open Item button because i have a custom editappointmentdialog and i didn't enable to inherit the overload of constructor to allow the IEvent and ISchedulerData parameter to be past. here is my code.

Private Sub radAppointmentReminder_ItemOpened(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.RadOpenItemArgs) Handles radAppointmentReminder.ItemOpened
 
       If Me.appointmentDialog Is Nothing Then
           ' Me.appointmentDialog = New frmCustomAppointmentEditForm()
           Me.appointmentDialog = New EditAppointmentDialog(CType(e.RemindObject, IEvent), Me.radSchedule)
       End If
 
       Me.appointmentDialog.ShowDialog()
         
   End Sub

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Jun 2016, 08:26 AM
Hello Deo,

Thank you for writing. 

You can find below a sample code snippet demonstrating how to create a custom EditAppointmentDialog and create a constructor passing the RadScheduler and Appointment to the base constructor in order to initialize the fields.
Dim appointmentDialog As CustomEditAppointmentDialog
Private Sub ItemOpened(sender As Object, e As RadOpenItemArgs)
    If Me.appointmentDialog Is Nothing Then
        Me.appointmentDialog = New CustomEditAppointmentDialog(CType(e.RemindObject, IEvent), Me.RadScheduler1)
    End If
    Me.appointmentDialog.ShowDialog()
End Sub
Public Class CustomEditAppointmentDialog
    Inherits EditAppointmentDialog
 
    Sub New(iEvent As Telerik.WinControls.UI.IEvent, radScheduler As Telerik.WinControls.UI.RadScheduler)
        MyBase.New(iEvent, radScheduler)
    End Sub
 
End Class

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Scheduler and Reminder
Asked by
Gervert
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or