RadDateTimePicker bug

2 posts, 1 answers
  1. Dmitry Shapiro
    Dmitry Shapiro avatar
    14 posts
    Member since:
    Jul 2008

    Posted 09 Dec 2008 Link to this post

    Hi, I'm use latest vesion control.
    When I click on the calendar and select 1 December, the day and month of the date in the control are swap, so when I click another time on the calendar, the date set is not December (Date set 12 January).

    My Code:
    <telerik:RadDateTimePicker ID="RadDateTimePickerRunning" Width="280px" TimeView-Caption="Время"  
    TimeView-Culture="Russian (Russia)" TimeView-Width="210px" 
    TimeView-TimeFormat="H:mm" Calendar-CultureInfo="Russian (Russia)" 
    runat="server" skin="WebBlue"
    <DateInput Width="210px" 
        DateFormat="dd MM yyyy H:mm" 
        DisplayDateFormat="dd MM yyyy H:mm"  > 
        </DateInput> 
        <Calendar CultureInfo="Russian (Russia)" 
             CellDayFormat="[ %d ]" 
         DayCellToolTipFormat="d MMM, yyyy"
        
        </Calendar> 
    <TimeView ID="TimeView1" runat="server"
    <HeaderTemplate> 
    Время 
    </HeaderTemplate> 
    </TimeView> 
    </telerik:RadDateTimePicker> 

  2. Answer
    Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 09 Dec 2008 Link to this post

    Hi Dmitry,

    Instead of setting cultures for the calendar and time view, just set it once for the RadDateTimePicker control:

    <telerik:RadDateTimePicker
        ID="RadDateTimePickerRunning"
        runat="server"
        Culture="Russian (Russia)"  />


    Greetings,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top