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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Localization in Grid (NO-CLASSIC)

Thread ID:

Created:

Updated:

Platform:

Replies:

116834 Jun 15,2014 10:04 AM UTC Jun 24,2014 04:33 AM UTC ASP.NET MVC 6
loading
Tags: Grid
Jesus Sanchez
Asked On June 15, 2014 10:04 AM UTC

Hi,

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

Thanks.

Attachment: SyncfusionGridCRUD_c026146c.zip

Madhu Sudhanan P [Syncfusion]
Replied On 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


Jesus Sanchez
Replied On June 17, 2014 03:57 PM UTC

Thanks .... Works!!!!


Ragavee U S [Syncfusion]
Replied On 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


Jesus Sanchez
Replied On 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

Jesus Sanchez
Replied On June 23, 2014 04:55 PM UTC

Solved!!!

.Format("{0:C}")

Thanks.


Ragavee U S [Syncfusion]
Replied On 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

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;