Hi, I want to use DatePicker in Chinese, but it always displays in English.
Code as bellow:
=============================================================================
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/ig.ui.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/i18n/igRegional/ig.ui.regional-i18n.min.js")" type="text/javascript"></script>
@using Infragistics.Web.Mvc; @{ ViewBag.Title = "DatePickerSample"; } <h2> DatePickerSample</h2> @(Html.Infragistics().DatePicker() .ID("datePicker") .ButtonType(TextEditorButtonType.DropDown) .NullText("Please input date") .DateDisplayFormat("yyyy/MM/dd") .DateInputFormat("yyyy/MM/dd") .HideMaskOnFocus(true) .Regional("zh-CN") .Value(DateTime.Now.AddDays(-10)) .Render())
And I have other questions:
1. Can DatePicker support a button bar with "Today" and "Clear".
2. I want to save the language resource in i18n into database, How can I integrate it with ig controls?
Thanks!
Hello Lostonzhang ,
Thank you for posting in our forum.
You need to add also the reference to the script file: “jquery-ui-i18n.js”
I’m going to look into your other questions as well and will let you know what I found out by Monday.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://www.infragistics.com/support
Yes, it work now after I add the reference to “jquery-ui-i18n.js”.
Do I need the reference to “ig.ui.regional-i18n.min.js”? It can work as well after remove it.
Hello Lostonzhang,
I don’t think this will work without the ig.ui.regional-i18n.min.js file. I tested it on my side and it threw an js error.
Regarding the button bar . This doesn’t seem to be an available feature yet. I’ll log a product idea on your behalf so that will be considered to be added in one of the future releases.
I have sent your product idea directly to our product management team. Our product team chooses new features for development based on popular feedback from our customer base.
If your product idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12030061.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com .
Let me know if there’s anything else I can help you with.
hi maya ,
have a problem aboute this issue, I change datepicker localization on my lanaguage , it work but datepicker required message not changed ??
How to change datepicker validation message ?