None bindable scheduler

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

    Posted 07 May 2014 Link to this post

    In my solution, i added a scheduler, with no binding datasource. I am loading data to the scheduler from a database table named "Remndr_table".
    When i am loading appointments from the database, the past appointments does not pop-up, even if i set the dismissed = false and the startreminderinterval before

    How can i add new record  to "remindr_table" when the user add a new appointment to the scheduler, and how to delete the record it if the user delete the appointment.
    I don't want to bind the data...

    I made a customappointmenteditform, and i follow the demo steps "Adding a custom field to the EditAppointment dialog"
    Everything goes fine.
    Only one thing, i am not able to open from the reminder window,  the appointment in my customappointmenteditform.
    How can i do that.
    i have the following, and it opens the normal editappointmentform
    Private Sub radReminder1_ItemOpened(ByVal sender As Object, ByVal e As RadOpenItemArgs)
           Dim editAppointmentDialog As New EditAppointmentDialog(CType(e.RemindObject, IEvent), sche)
           editAppointmentDialog .showdialog 
    end sub

  2. Dess
    Dess avatar
    1561 posts

    Posted 12 May 2014 Link to this post

    Hello Roucoz,

    Thank you for writing.

    Data binding is the convenient approach to load all the appointments from the database and reflect all changes that you make (add new appointments, delete/update existing ones). It is possible to subscribe to the RadScheduler.Appointments.CollectionChanged event and manually perform all the changes to our datatable. However, I would recommend you use the data binding approach.

    The RadScheduler.AppointmentEditDialogShowing event is the appropriate place to replace the AppointmentEditDialog with your custom one. As to the reminder, it is necessary to subscribe to its ItemOpened event and show the CustomAppointmentEditForm.

    I have prepared a sample project, demonstrating how to achieve your requirement via data binding (which is the recommended way to reflect changes in database) and how to replace the AppointmentEditForm when the "Open Item" button is clicked.

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

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft banner
Back to Top