RadScheduler disable edit modal

4 posts, 1 answers
  1. Gonzalo
    Gonzalo avatar
    4 posts
    Member since:
    Jun 2013

    Posted 16 Jul Link to this post

    Hello,

    I need to disable the edit and insert modal without disabling the drag and drop and resize functionality for appointments. I am currently handling the server side AppointmentClick on my own and I don't want the default edit modal to display when I double click the appointment. Is there a way to just disable the edit modal without affecting the resize appointment, delete appointment and drag and drop update?

     

    Thanks for your help

  2. Gonzalo
    Gonzalo avatar
    4 posts
    Member since:
    Jun 2013

    Posted 16 Jul in reply to Gonzalo Link to this post

     

    I found a solution for this:

    Private Sub RadScheduler1_FormCreated(sender As Object, e As SchedulerFormCreatedEventArgs) Handles radScheduler1.FormCreated
     
        If e.Container.Mode = Telerik.Web.UI.SchedulerFormMode.AdvancedEdit Then     
          e.Container.Visible = false
        End If
     
      End Sub
  3. Answer
    Peter Milchev
    Admin
    Peter Milchev avatar
    588 posts

    Posted 19 Jul Link to this post

    Hello Gonzalo,

    Another option to prevent the edit form from showing is setting e.Cancel=True in the OnFormCreating event: https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/server-side-programming/server-events/formcreating

    Protected Sub RadScheduler1_FormCreating(ByVal sender As Object, ByVal e As SchedulerFormCreatingEventArgs)
        e.Cancel = True
    End Sub

    Regards, Peter Milchev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  4. Gonzalo
    Gonzalo avatar
    4 posts
    Member since:
    Jun 2013

    Posted 23 Jul in reply to Peter Milchev Link to this post

    Thank you for the reply Peter, that worked great!
Back to Top