Show Edit Dialog after dropping

2 posts, 1 answers
  1. Brandon
    Brandon avatar
    18 posts
    Member since:
    Nov 2009

    Posted 03 Sep 2015 Link to this post

    I have a 'placeholder' appointment that we place on the scheduleview via code upon loading the calendar.  We let the user drag the appointment to the correct date/time and would then like to show the Edit Appointment dialog for this 'new' appointment. 

    The post here ( says this will be integrated in a later version in 2011.  How do we go about doing this from within the CustomDragDropBehavior?

    Also the 'placeholder' appointment is NOT in the 'ScheduleViewRepository.Context' as I have excluded the placeholders from the 'NotifyCollectionChangedAction.Add' so it doesn't add all of them that are not dragged and created as actual appointments.  So can I add it add some point in the SqlAppointment class endedit somehow?

    Thanks much!

  2. Answer
    Rosi avatar
    2529 posts

    Posted 04 Sep 2015 Link to this post


    You can open the dialog on the Drop or DragDropCompleted method of DragDropBehavior with the following code:
    var scheduleView = state.ServiceProvider.GetService<IObjectEditor<IAppointment>>() as ScheduleViewBase;
    scheduleView.SelectedAppointment = null;
    RadScheduleViewCommands.EditAppointment.Execute(appointment, scheduleView);

    Please give it a try and let us know how this goes.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top