c# - GRID.mvc issue in changing language [ASP.net MVC 4] -
I am using in my project and I want to change the grid language. To do this I have made and Then in my opinion I made it: This But when I click on the If you are not able to change the current language by default, you will see the I hope this will help Gridmvc.lang.fr.js file for my language:
/ *** * Grid.Mvc French language (fr -fr) http://gridmvc.codeplex.com/ * / window.GridMvc = window.GridMvc || {}; Window.GridMvc.lang = window.GridMvc.lang || {}; GridMvc.lang.fr = {filterTypeLabel: "Type:", FilterValueLabel: "Valeur:", applyFilterButtonText: "Applique", Filter Select Type: {equal: "agell", start: "command equals", includes: " "Fountain", "Finee Sam", Greateran: "Plus Queen", Cmthan: "Moin Kiey"}, code: 'fr', bulltru label: "wry", booleous labels: "foed", clear filter label: Wide "};
@ html.grid (model). Named ("offresGrid"). Columns (Columns = & gt; {Columns.Add (item = & gt; item.REGION.NOM) .Filreable (true) .Tantable (true); ...}) with paging (20) & lt; Script & gt; $ (Function () {pageGrids.offresGrid.lang = GridMvc.lang.fr;}); & Lt; / Script & gt;
part of gridmvc.js :
// Load existing lang options: this.lang = GridMvc. lang [this.options.lang]; If (this.lang == 'undefined') this.lang = GridMvc.lang.en;
Filter Icon , then it does not work, empty popup does not get any value or button
Anyone How can language change Lang.fr by default? Gridmvc.lang.fr.js and this script will also:
& lt; Script & gt; $ (Function () {pageGrids.offresGrid.lang = GridMvc.lang.fr;}); & Lt; / Script & gt; Regarding this snippet in
GridMVC.js :
this.lang = GridMvc.lang [this.options.lang ]; If (typeof (this.lang) == 'undefined') this.lang = GridMvc.lang.fr; // Try it but I'm not sure. Because it estimates to update long section // where Lang is located or add the first code over there.
Comments
Post a Comment