RibbonDatePicker:: can not change calendar of RibbonDatePicker

Posted by: moridi on 23 May 2018, 3:44 pm EST

    • Post Options:
    • Link

    Posted 23 May 2018, 3:44 pm EST

    Hi,

    I want to change the current calendar of RibbonDatePicker.

    I can not change calendar type or assign new calendar via

    .SetCultureInfo(System.Threading.Thread.CurrentThread.CurrentUICulture);

    .Calendar.CurrentCulture = System.Threading.Thread.CurrentThread.CurrentUICulture;

  • Posted 24 May 2018, 4:58 am EST

    Hi Omid!

    You can try something like this :

    public Form1()
    {
             System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("ja-JP");
             System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ja-JP");
    
             InitializeComponent();
    }
    

    It should help you.

    Best regards,

    Meenakshi

  • Posted 24 May 2018, 3:17 pm EST

    Hi

    I use this before

    It’s OK for for input date but do not show correct in dropdown calendar.

    It’s OK for c1DateEdit in both Input and dropdown.

    please check with

    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(“ar”);

    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“ar”);

    today show as 10/09/39 but in calendar show today is 24

  • Posted 25 May 2018, 12:55 am EST

    Hi!

    Yes, it appears to be some issue with this culture name only. I have informed the team, to resolved this issue [Internal ID : 323942].

    We’ll notify you once it is fixed.

    Thanks,

    Meenakshi

  • Posted 30 May 2018, 12:20 am EST

    Hi,

    It’s a limitation for the current C1Ribbon version. And the team has added it in to-do list.

    As workaround, you can use C1DataEdit as RibbonControlHost element, please see attached sample.

    Prj_Calendar_RibbonDatePicker_workaround.zip

    In addition to this :

    1. Sample about RibbonControlHost element: https://www.grapecity.com/en/samples/controlhost
    2. Help: http://help.grapecity.com/componentone/NetHelp/c1ribbon/webframe.html#embeddingatextboxina.html

    Best regards,

    Meenakshi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels