Hi,
Recently I'm using ultraCalendarCombo.
As the request needs, I was wandering if I want to show the value "平成27年04月28日" in the ultraCalendarCombo, is it possible to implement that?
Does it have to like the topic below:
http://es.infragistics.com/community/forums/t/95554.aspx
Could you please help me with that? Thanks for your concern.
P.s. "平成27年04月28日" is actually Japanese calendar, and in culture "en-US" it's "2015/04/28"
sample solution
Hello Richard,
Thank you for your feedback.
In order to implement standard calendar-select effect instead of UltraDropdownCalendar you can use UltraDateTimeEditor. Date time editor uses MS calendar when it is dropped down. Please note MS calendar uses the Windows regional settings to choose what calendar to show. So if your customer’s regional settings are set to Japanese the calendar will be shown in Japanese.
Please check the attached sample project where I have added UltraDateTimeEditor.
Please let me know if you need any further assistance.
Hi, Milko
Thanks for your help. And the calendarCombo could show the value that I need.
But when I click the calendar-select button(screenshot one), that I want to change the year, it's only shows the "平成27年4月", "平成27年3月"(screenshot two), something like that.
I was wondering if it's possible to implement the standard calendar-select effect, which is when I click the year(screenshot three), it will show the month select screen(screenshot four).
Hello Richard,Thank you for posting in our forum.In order to display the dates in Japanese you need to set your CurrentThread culture calendar to Japanese calendar. You may use code like this:
CultureInfo japanese = new CultureInfo("ja-JP");japanese.DateTimeFormat.Calendar = new JapaneseCalendar();Thread.CurrentThread.CurrentCulture = japanese;Thread.CurrentThread.CurrentUICulture = japanese;}
Next step is to set the UltraCalendarCombo Format property to “D”. This will force the combo to show the date, when combo is not in edit mode, formatted as long day format which in Japanese is this 平成27年04月29日.Please find attached a small sample solution implementing this approach and let me know if this is what you are looking for or if I am missing something.