How do I set the region to UK for my date format in a DatePicker control ? Its defaulted to US. Im using MVC helper NOT javascript so i need and example for that. Heres what I have
@(Html.Infragistics().DatePickerFor(model => model.ContractDate) .ID("contractDatePicker") .Width("150px").DateDisplayFormat("dd/MM/yyyy") .DateInputFormat("dd/MM/yyyy") .ButtonType(TextEditorButtonType.Clear) .Regional( --> what goes here for UK date format ?? .Render())
Hello Mark,
To know about datepicker’s regional settings please refer to the online help:
http://help.infragistics.com/Help/Doc/jQuery/2014.1/CLR4.0/html/Using_Infragistics_Loader.html#_Ref322448594
When you look into the document you would find the region option for the UK is 'en-GB (English, United Kingdom)'.
All regional files can be found in folder:
{IG Resources root}/js/modules/i18n/regional/
so in your sample you have to load that file like this:
<script src="../js/modules/i18n/regional/infragistics.ui.regional-en-GB.js"></script>
I have created a sample application for your reference. Please find the attachment and let me know if you need further assistance.
"Im using MVC helper NOT javascript"
The sample I have provided is using MVC wrapper, it’s not JavaScript or jQuery sample.
In your code for UK region you have to set the ‘Regional’ property as ‘en-GB’
.Regional(“en-GB”)
and make sure you have included UK regional script file which could be found in below path in your machine:
So in the head file you would have script file as:
Please let me know if you need further assistance on this matter.