We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Localization in Grid (NO-CLASSIC)

Hi,

How to change the Localization to ("es-ES") in my App?
Can you help me??

Thanks.

Attachment: SyncfusionGridCRUD_c026146c.zip

6 Replies

MS Madhu Sudhanan P Syncfusion Team June 16, 2014 11:40 AM UTC

Hi Jesus,

 

Thanks for using Syncfusion products.

 

Using “culture” method of Globalize, we can set the default culture for the application after referring the required globalize culture script.  Please refer the below code snippet.

 

 

Globalize.culture("es-ES")

 

 

We can provide the localization strings in grid by overriding the properties of ej.Grid.localization. Please refer the below table for the default localization strings in grid.

 

 

ej.Grid.localization["en-US"] = {

        EmptyRecord: "No records to display",

                   //Editing option localization strings

        DeleteOperationAlert: "No records selected for delete operation",

        EditOperationAlert: "No records selected for edit operation",

        SaveButton: "Save",

        OkButton: "OK",

        CancelButton: "Cancel",

        EditFormTitle: "Details of ",

        AddFormTitle: "Add New Record",

                  //Key Combination alert message

        Notactionkeyalert: "This Key-Combination is not avaiable",

        Keyconfigalerttext: "This Key-Combination has already been assigned to ",

                  //Group drop area and caption format

        GroupDropArea: "Drag a column header here to group its column",

        GroupCaptionFormat: "items",

                  //Bulk Editing Alert Messages

        BulkSaveConifrm: "Are you sure you want to save changes?",

        BulkSaveLostChanges: "Unsaved changes will be lost. Are you sure you want to continue?",

                  //Pager bar message string

        PagerInfo: "{0} of {1} pages ({2} items)",

                  //Frozen Alert Messages

        frozenColumnsViewAlert: "Frozen columns should be in grid view area",

        frozenColumnsScrollAlert: "Enable allowScrolling while using frozen Columns",

        frozenNotSupportedException: "Frozen Columns and Rows are not supported for Grouping, Row Template, Detail Template and Batch Editing",

                   //Toolbar tooltip

        Add: "Add",

        Edit: "Edit",

        Delete: "Delete",

        Update: "Update",

        Cancel: "Cancel",

        //Filter menu strings

        StringMenuOptions: [{ text: "StartsWith", value: "StartsWith" }, { text: "EndsWith", value: "EndsWith" }, { text: "Contains", value: "Contains" }, { text: "Equal", value: "Equal" }, { text: "NotEqual", value: "NotEqual" }],

        NumberMenuOptions: [{ text: "LessThan", value: "LessThan" }, { text: "GreaterThan", value: "GreaterThan" }, { text: "LessThanOrEqual", value: "LessThanOrEqual" }, { text: "GreaterThanOrEqual", value: "GreaterThanOrEqual" }, { text: "Equal", value: "Equal" }, { text: "NotEqual", value: "NotEqual" }],

        PredicateAnd: "AND",

        PredicateOr: "OR",

        Filter: "Filter",

        MatchCase: "Match Case",

        Clear: "Clear"

    };

 

 

For example we can set the pagerInfo property for “es-ES” culture as follows.

 

 

  ej.Pager.localization["es-ES"] = {

        pagerInfo: "{0} de {1} páginas ({2} artículos)"

    };

 

 

 

For your convenience we have modified the attached sample and the same can be downloaded from the below location.

 

Sample Location: SyncfusionGridCRUD.zip

 

Please let us know if you have any queries.

 

Regards,                                                                         

Madhu Sudhanan. P



JS Jesus Sanchez June 17, 2014 03:57 PM UTC

Thanks .... Works!!!!



RU Ragavee U S Syncfusion Team June 18, 2014 06:54 AM UTC

Hi Jesus

 

Thanks for the update.

 

If you have any issues in the future, please get back to us. We will be happy to assist you.

 

Please let us know if you would require any further assistance.

 

Regards

Ragavee U S



JS Jesus Sanchez June 23, 2014 03:34 PM UTC

One thing more: I have a column with double, decimal point decimal represents them using: ".", how can I to change this so that the decimal point is: ","???.

Thanks


JS Jesus Sanchez June 23, 2014 04:55 PM UTC

Solved!!!

.Format("{0:C}")

Thanks.



RU Ragavee U S Syncfusion Team June 24, 2014 04:33 AM UTC

Hi Jesus.

 

Thanks for the update.

 

If you have any issues in the future, please get back to us we will be happy to assist you.

 

Please let us know if you would require any further assistance.

 

Regards

Ragavee U S

 


Loader.
Live Chat Icon For mobile
Up arrow icon