Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
How DatePicker support local resource?
posted

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!