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

Triggering Edit Appointment from MVVM View Model

3 Answers 29 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Phoenix
Top achievements
Rank 1
Phoenix asked on 10 Jul 2018, 12:04 PM
We're using MVVM to provide the list of appointments that the schedule view is displaying, I can't find a way to trigger an edit without accessing the ScheduleView directly.

Do you have any advice that would allow us to trigger an edit without needing any UI interaction in our code?  Or if we do need it, that we can put outside the View and the View-Model.

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 Jul 2018, 08:21 AM
Hello Phoenix,

In such scenarios we usually suggest implementing an attached behavior for handling a given operation. With such an approach the MVVM environment of your application will not be affected. Would such an approach be working for you?

Regards,
Stefan
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.
0
Phoenix
Top achievements
Rank 1
answered on 18 Jul 2018, 08:44 AM

I probably would, I couldn't work out what I'd be looking to attach it to.  It's one of the things that I looked at creating myself but couldn't find the information I needed to progress.

Would you have a working example of this?

 

0
Stefan
Telerik team
answered on 23 Jul 2018, 08:24 AM
Hello Phoenix,

Thanks for the clarification.

In order to programmatically trigger an edit operation and open the editing dialog, you can call the EditAppointment command of RadScheduleView. Please, take a look at the Commands topic for further reference.

Regards,
Stefan
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
Phoenix
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Phoenix
Top achievements
Rank 1
Share this question
or