RadDatePicker Bug with Korean Culture

2 posts, 0 answers
  1. Nicolas
    Nicolas avatar
    1 posts
    Member since:
    Oct 2012

    Posted 31 Oct 2013 Link to this post

    Hello Telerik-Support,

    when picking a date with the RadDatePicker in korean culture the control always sets the current Date instead of the picked one.

    function setCalendarTable() {
     
        var picker = $find(_RadDatePicker_ID);
        var calendar = picker.get_calendar();
        var fastNavigation = calendar._getFastNavigation();
     
    fastNavigation.OnOK =
            function () {
                var date = new Date(fastNavigation.Year, fastNavigation.Month, 1);
                picker.get_dateInput().set_selectedDate(date);
                fastNavigation.Popup.Hide();
                document.getElementById(_hiddenDate_ID).value = new Date().ticks(picker.get_selectedDate());
               
            };

    This Bug occurs when calling the set_selectedDate(date)-Method and it only occurs when in korean culture. Other cultures ( e.g. german, us, polish, ...) work just fine with the Datepicker.

    I am thankful for any suggestions on how to fix this.

    Kind Regards,

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

    Posted 01 Nov 2013 Link to this post

    Hi Nicolas,

    I have tried your code in  Korean as well as  other culture. Here is the sample code snippet which works fine at my end.

    JavaScript:
    <script type="text/javascript">
        window.onload = function () {
            window.setTimeout(function () { setCalendarTable(); }, 200)
        }
        function setCalendarTable() {
            var  picker = $find("<%=RadDatePicker1.ClientID %>");
            var calendar = picker.get_calendar();
            var fastNavigation = calendar._getFastNavigation();
            fastNavigation.OnOK =
            function () {
                var date = new Date(fastNavigation.Year, fastNavigation.Month, 1);
                picker.get_dateInput().set_selectedDate(date);
                fastNavigation.Popup.Hide();
                document.getElementById("Hidden").value =picker.get_selectedDate();
            }
        }
    </script>

    Thanks,
    Shinu.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top