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

how to set the pop control of datetimepicker

1 Answer 55 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
leo
Top achievements
Rank 1
leo asked on 10 Dec 2009, 09:47 AM
I have to questions about datimepicker here.

1. when updated the telerik from 2008 Q2 to 2009 Q3, the letters(I mean "AM" and "PM") in the popup control of datetimepicker became to lowcase letters( such as "am" and "pm") and also find the time columns are right-aligned.
can anyone tell me how to set the align and the upcase of the letter of "am" and "pm" in the popup control of datetimepicker.

2. I noticed that when I change the selection in time picker, the last selection is marked.
how can I get  rid of the mark from the popup control of time picker? I mean each time I open the popup control of time picker, there should be no marked selection.

thanks


1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Dec 2009, 11:17 AM
Hello Leo,

By default, the RadDatePicker, RadTimePicker, and RadDateTimePicker controls use the system locale settings to determine how they format date and time values. If you have specified a culture, they display their values based on the culture settings. Give a try with following code in order to set the AM/PM Designator from code.

CS:
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        this.RadDateTimePicker1.Culture = new CultureInfo("en-US"); 
        this.RadDateTimePicker1.Culture.DateTimeFormat.AMDesignator = "AM"
        this.RadDateTimePicker1.Culture.DateTimeFormat.PMDesignator = "PM";  
    } 

-Shinu.
Tags
Calendar
Asked by
leo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or