Using Open Item of radSchedulerReminder

2 posts, 1 answers
  1. Gervert
    Gervert avatar
    1 posts
    Member since:
    Jun 2016

    Posted 15 Jun 2016 Link to this post

    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

     

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3379 posts

    Posted 16 Jun 2016 Link to this post

    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.
Back to Top