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 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 "};   

Then in my opinion I made it:

  @ 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;   

This part of gridmvc.js :

  // Load existing lang options: this.lang = GridMvc. lang [this.options.lang]; If (this.lang == 'undefined') this.lang = GridMvc.lang.en;   

But when I click on the 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?

If you are not able to change the current language by default, you will see the 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.   

I hope this will help

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -