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

RadScheduler disable edit modal

3 Answers 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 16 Jul 2019, 06:32 PM

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

3 Answers, 1 is accepted

Sort by
0
Gonzalo
Top achievements
Rank 1
answered on 16 Jul 2019, 07:11 PM

 

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
0
Accepted
Peter Milchev
Telerik team
answered on 19 Jul 2019, 11:59 AM

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.
0
Gonzalo
Top achievements
Rank 1
answered on 23 Jul 2019, 12:54 PM
Thank you for the reply Peter, that worked great!
Tags
Scheduler
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Gonzalo
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or