Wijmo Flex Grid filtering localization

Posted by: omelalex on 14 September 2017, 11:43 am EST

    • Post Options:
    • Link

    Posted 14 September 2017, 11:43 am EST

    Hi Guys,

    Could you help me with the following problem:

    On our project we have requirements saying that all dialogues and controls should be localizable and we are using Wijmo flex grig (Wijmo Library 5.20152.93).

    Could you provide information on how to localize the grid and provide custom labels for all dialogues?

    I have looked through the forum but it was not really helpful. Also there are several posts referencing culture-specific files, but I was not able to download them as links are outdated.

    Please provide the relevant information on how to achieve our goals.

    Thanks.

  • Posted 14 September 2017, 11:43 am EST

    Hi,

    The wijmo.Globalize class has methods for formatting and parsing numbers and dates. These methods are used by all Wijmo controls, and you can use them in your code as well. The default culture used for formatting and parsing values is American English, but you can switch languages by adding a reference to the appropriate wijmo.culture.*.js file to your pages.

    Please see sample code in wijmo.culture.fr-CA.min.js which implements localized values for FlexGrid (Group Header,FlexGridFilter)

    /*
        *
        * Wijmo Library 5.20153.109
        * http://wijmo.com/
        *
        * Copyright(c) GrapeCity, Inc.  All rights reserved.
        *
        * Licensed under the Wijmo Commercial License.
        * sales@wijmo.com
        * http://wijmo.com/products/wijmo-5/license/
        *
        */
    var wijmo;(function(n){n.culture={Globalize:{numberFormat:{'.':',',',':' ',percent:{pattern:['-n %','n %']},currency:{decimals:2,symbol:'$',pattern:['(n $)','n $']}},calendar:{'/':'-',':':':',firstDay:0,days:['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],daysAbbr:['dim.','lun.','mar.','mer.','jeu.','ven.','sam.'],months:['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre'],monthsAbbr:['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.'],am:['',''],pm:['',''],eras:['ap. J.-C.'],patterns:{d:'yyyy-MM-dd',D:'d MMMM yyyy',f:'d MMMM yyyy HH:mm',F:'d MMMM yyyy HH:mm:ss',t:'HH:mm',T:'HH:mm:ss',m:'d MMMM',M:'d MMMM',y:'MMMM, yyyy',Y:'MMMM, yyyy',g:'yyyy-MM-dd HH:mm',G:'yyyy-MM-dd HH:mm:ss',s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss'},fiscalYearOffsets:[3,3]}},MultiSelect:{itemsSelected:'{count:n0} articles sélectionnés'},FlexGrid:{groupHeaderFormat:'{name}: <b>{value} </b>({count:n0} articles)'},FlexGridFilter:{ascending:'\u2191 Croissant',descending:'\u2193 Décroissant',apply:'Appliquer',clear:'Effacer',conditions:'Filtrer par état',values:'Filtrer par valeur',search:'Rechercher',selectAll:'Sélectionner tous les éléments',null:'(rien)',header:'Afficher les articles où la valeur',and:'Et',or:'Ou',stringOperators:[{name:'(non défini)',op:null},{name:'Est égale à',op:0},{name:'N\’est pas égale à',op:1},{name:'Commence par',op:6},{name:'Se termine par',op:7},{name:'Contient',op:8},{name:'Ne contient pas',op:9}],numberOperators:[{name:'(non défini)',op:null},{name:'Est égale à',op:0},{name:'N\’est pas égale à',op:1},{name:'Est supérieure à',op:2},{name:'Est supérieure ou égale à',op:3},{name:'Est inférieure à',op:4},{name:'Est inférieure ou égale à',op:5}],dateOperators:[{name:'(non défini)',op:null},{name:'Est égale à',op:0},{name:'Est avant',op:4},{name:'Est après',op:3}],booleanOperators:[{name:'(non défini)',op:null},{name:'Est égale à',op:0},{name:'N\’est pas égale à',op:1}]}}})(wijmo||(wijmo={}))

    You may also refer to this sample for usage.

    Thanks,

    Abhishek

  • Posted 12 March 2018, 5:41 am EST

    Hi,

    how do I apply subcultures when imported via CDN. If I would like to have de-CH instaed of de-DE (number format is quite different) how would I implement this?

    Thanks

    heinz

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels