Month/Year RadDatePicker for Chinese

2 posts, 0 answers
  1. savindag
    savindag avatar
    4 posts
    Member since:
    Jan 2010

    Posted 28 Jan 2010 Link to this post

    Having a issue with the Month/Year RadDatePicker script provided at It is working as expected for other cultures except  Chinese.

    To reproduce this issue 
    1) download the sample and add a Culture="zh-CN" attribute to the RadDatePicker tag
    2) Run the project and pick a 2 character month (i.e. Jan-Oct).
    The month in the input box changes to Jan always unless a 3 character month is selected (i.e. Nov or Dec)

    The issue is in the RadDatInputScript.js at Token.FindIndex where it assumes all the abbreviated month names are at least 3 characters long.

    return -1;
    for(var i=0;i<_7d.length;i++){
    return i;

    I changed the condition to check for at least 2 characters instead of 3 but the format of the month in the month/year select popup drops the last character of the 3 character month to the next line. It is not a proper fix but for the moment it seems fine but I would like to have a proper fix.


  2. Dimo
    Dimo avatar
    8475 posts

    Posted 01 Feb 2010 Link to this post

    Hello savindag,

    The 3 letter condition has been changed to a 2-letter since Q2 2009 SP1 (2009.2.826) - you can try using this version or a newer one.

    I am afraid I do not see how the above is related to the month-year dropdown's layout - can you provide an example?

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top