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

time format in AppointmentEditDialog

1 Answer 36 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
acasegra
Top achievements
Rank 1
acasegra asked on 16 Mar 2012, 02:44 PM
Hi im spanish and i apologice beacuse mi enlglish is no so well

The time format in AppointmentEditDialog is in 12 hours and I need see it in 24h
¿who can i chenge it?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 21 Mar 2012, 01:32 PM
Hi acasegra,

Thank you for your question.

You can achieve this by creating a custom EditAppointmentDialog and changing the Culture of the time pickers:

public class MyEditAppointmentDialog : EditAppointmentDialog
{
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        this.timeStart.Culture = System.Globalization.CultureInfo.InvariantCulture;
        this.timeEnd.Culture = System.Globalization.CultureInfo.InvariantCulture;
    }
}

To put the above custom dialog in use, you need to handle the AppointmentEditDialogShowing event of RadScheduler as it is shown below:
void radScheduler1_AppointmentEditDialogShowing(object sender, AppointmentEditDialogShowingEventArgs e)
{
    e.AppointmentEditDialog = new MyEditAppointmentDialog();
}

I hope this helps. Feel free to ask if you have any further questions.

Regards,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Scheduler and Reminder
Asked by
acasegra
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or