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

How to disable Save and Cancel button in custom appointment dialog

1 Answer 112 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Gts
Top achievements
Rank 1
Gts asked on 05 Mar 2014, 11:55 AM
Hi.
I have custom appointment dialog. And I need do some checks when user enter data but when checking in progress I need disable Save and Cancel button.
How can I get access to this button from my custom appointment?
My custom appointment class look like:
public class SchedulerAppointment : Appointment
{
   private SchedulerEditor _editor;
        public SchedulerEditor Editor
        {
            get { return this.Storage<SchedulerAppointment>()._editor; }
            set
            {
                var storage = this.Storage<SchedulerAppointment>();
                if (storage._editor != value)
                {
                     
                    storage._editor = value;
                     
                    if (value.SchedulerItem != null)
                    {
                        base.Subject = value.SchedulerItem.SchedulerName;
                         
                    }
                    this.OnPropertyChanged(() => this.Editor);
                }
            }
        }
}

SchedulerEditor - my custom control with all controls and some business logic.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 07 Mar 2014, 12:10 PM
Hi Artem,

In order to provide you with the right solution for the requirement we will need some more detailed information  about the custom dialog, appointments and the whole scenario. However what I can suggest you for now is to check the Custom Appointment and Validation example from our online Silverlight demos. It demonstrates the same scenario - custom Appointments with custom EditAppointmentDialog which disables the Ok button when the information in the NumericUpDown is not correct.

Hope this will help you to achieve the required scenario.

Regards,
Kalin
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
ScheduleView
Asked by
Gts
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or