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

How not to show the Appointment Dialog

1 Answer 67 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Rodolfo
Top achievements
Rank 1
Rodolfo asked on 24 Apr 2018, 07:43 PM

Hi i was wondering if there is any way i could bypass the schedule appointment dialog when i double click to edit an existing appointment 
cause i would like to use my own form that has all i need also plan to do save other info in my database and i cant do that from the pre existing form
I've seen you can create customs but it doesn't cut it for what I'm trying to achieve.

other thing that could work for me if there could be a way to close the dialog when it opens 

 

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Apr 2018, 08:25 AM
Hello Rodolfo,

I guess you have already checked out this section of our documentation:

Creating a custom Appointment Dialog

Could you please elaborate a bit more why this approach is not suitable in your scenario.
On the other hand, RadScheduleView provides list of commands, and you can override their execution. For example, to override the EditAppointment command, you can use the following code:

public Example()
        {  
            InitializeComponent();
            viewModel = new ViewModel(this.scheduleView);
            this.DataContext = viewModel;           
 
           CommandBinding commandBinding = new CommandBinding(RadScheduleViewCommands.EditAppointment, OnCommandExecuted, OnCommandCanExecute);
 
           CommandManager.RegisterClassCommandBinding(typeof(RadScheduleView), commandBinding);
        }
 
        private void OnCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            e.CanExecute = true;
        }
 
        private void OnCommandExecuted(object sender, ExecutedRoutedEventArgs e)
        {
          // you decide what window to show here
        }

I hope this could serve well in your scenario.


Regards,
Petar Mladenov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ScheduleView
Asked by
Rodolfo
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or