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!
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 ,
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://ko.infragistics.com/support