Programmatically opening custom EditAppointmentDialog

7 posts, 0 answers
  1. Diederik
    Diederik avatar
    4 posts
    Member since:
    Feb 2013

    Posted 08 Oct 2013 Link to this post

    I have a ScheduleView with a custom EditAppointmentDialogStyle. When I doubleclick on an appointment, the correct custom dialog opens. When I do this programmatically using RadScheduleViewCommands.EditAppointment.Execute in the AppointmentEdited event, then the native dialog opens. Is there a way to open the custom dialog programmatically?
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 08 Oct 2013 Link to this post

    Hello Diederik,

    We tried to reproduce the described behavior with custom EditAppointmentDialog and everything worked as expected - the custom dialog was shown on AppointmentEdited. I'm attaching here our test project, please check it and let us know if there is anything else that we are missing.

    I'm looking forward to your response.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Diederik
    Diederik avatar
    4 posts
    Member since:
    Feb 2013

    Posted 09 Oct 2013 Link to this post

    Thanks for the response. I should have mentioned that I'm working with Visual Studio 2010, now I'll have to 'downgrade' your project.
  5. Diederik
    Diederik avatar
    4 posts
    Member since:
    Feb 2013

    Posted 09 Oct 2013 Link to this post

    I can already confirm that your sample project works indeed as expected, on our production machine. Thanks again. I can now further investigate what's different in our code.
  6. Diederik
    Diederik avatar
    4 posts
    Member since:
    Feb 2013

    Posted 10 Oct 2013 Link to this post

    Solved!

    The problem seems to have been caused by a DragDropBehavior assigned to the ScheduleView that made an explicit call to a base class method.
  7. Karl
    Karl avatar
    172 posts
    Member since:
    Jun 2009

    Posted 22 Oct 2013 Link to this post

    Is it possible to have this sample project in visual studio 2010 format targeting .Net 4.0
  8. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 24 Oct 2013 Link to this post

    Hello Karl,

    Please check the attached project - now it should work with VS2010 without a problem.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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
UI for WPF is Visual Studio 2017 Ready