how to set the pop control of datetimepicker

2 posts, 0 answers
  1. leo
    leo avatar
    1 posts
    Member since:
    Dec 2009

    Posted 10 Dec 2009 Link to this post

    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


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Dec 2009 Link to this post

    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.
Back to Top