Have you reviewed these articles before implementing this?
Also, I am sending you a sample project in which you could find the template of the EditAppointmentDialog so that you could modify it.
Please let us know if you still have some issues.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.