Always use Appointment edit dialog

4 posts, 1 answers
  1. AMF
    AMF avatar
    34 posts
    Member since:
    Mar 2011

    Posted 15 Jun 2011 Link to this post

    Is there an option in the RadScheduler to force the user to use the edit dialog?

    Default the user is able to type the appointments directly in the scheduler. In this case the only field that is being used is the Subject.
    I created a custom edit dialog, and added a few fields. These fields are mandatory, and to fill this fields the user needs to use the edit dialog.

    So is this possible?
  2. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 20 Jun 2011 Link to this post

    Hi AMF Microsign,

    Thank you for your question.

    This has already been requested by other users and we will consider adding a property to prevent appointments from being created inline in the next official release. For the time being, you can use the following workaround:

    public Form1()
    {
        InitializeComponent();
        radScheduler1.SchedulerElement.EditorManager = new MySchedulerEditManager(radScheduler1.SchedulerElement);
    }
      
    class MySchedulerEditManager : SchedulerEditManager
    {
        public MySchedulerEditManager(RadSchedulerElement element): base(element)
        {
              
        }
      
        public override bool BeginInlineEdit()
        {
            this.SchedulerElement.View.UpdateAppointments(this.SchedulerElement.Scheduler.Appointments);
            return false;
        }
    }

    Hope this helps. Do not hesitate to contact me back if you have any additional questions.

    Greetings,
    Ivan Todorov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Vijay
    Vijay avatar
    4 posts
    Member since:
    Sep 2013

    Posted 30 Oct 2013 Link to this post

    I want to disable Inline Editing as well and used the code you had provided. Before implementing the code I could create type what I want and it would create the appointment using Inline Edit.

    After using the code, the behaviour has changed so that it would let me enter in the first letter only and STILL create the appointment.

    Any help would be appreciated.

    Thanks,
    Vijay
  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 04 Nov 2013 Link to this post

    Hello Vijay,

    Thank you for contacting Telerik Support.

    In order to disable inline editing, you may use AllowAppointmentCreateInline property:
    radScheduler1.AllowAppointmentCreateInline = false;

    The provided code in the previous post is a workaround for preventing inline editing for versions until Q1 2011 SP1 includingly.

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

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top