Hello,
Firstable, thank you for the support and all the tutorials.
I have a problem with Ignite UI 2012.2 IgGrid for ASP.net MVC4 Razor, i´m not able to load the js resources for my Language Spanish.
I´m Following all the tutorials but unfortunately i dont achieve any results.
I´m doing the tutorials step by step, and actually i dont know if i´m missing something.
thanks in advance,
David Alonso.
Hello Martin,
it´s seems to work properly with this line of code and it change the culture too, Spanish and English.
I don´t understand it really good but it´s works.
Thank you so much for your support.
Really good job.
Hello David,
You don't have to load a localization file for English explicitly.
Try to use the following code in order to reset the locale back to English:
$.datepicker.setDefaults($.datepicker.regional[""]);
Hope this helps,Martin PavlovInfragistics, Inc.
Thank you again for your support.
Now the dataPicker is in Spanish, but only in Spanish it doesn´t change to defautl.
Should i load a localization file for English?
There are only for GB, NZ and AU not US.
Regards in advance.
The igDatePicker control is based on the jQuery UI Datepicker control. In order to localize the date picker control you should go to the jQuery UI site and download the Datepicker control. In the bundle there are localization files.
You should include the localization files which you want to support in your page.
Then you have to call the following function:
$.datepicker.setDefaults($.datepicker.regional["es"]);
where "es" is the locale in your cookie.
I'm attaching a sample project which demonstrates this.
To achieve the culture change also in the IgGrid i made a especific cookie
Dim Culture As HttpCookie = New HttpCookie("culturename")
Culture.Value = cultureName.Substring(0, cultureName.IndexOf("-"))
with the new culture and load in the script
$.ig.loader({ scriptPath: "/Scripts/jQuery/Common/js/", cssPath: "/Scripts/jQuery/Common/css/", resources: "igGrid.Paging", locale: $.cookie("culturename")});
but the calendar in the filtering isn´t chaging.
The calendar was always in English, never changed.