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.

Additional localisation options

Thread ID:

Created:

Updated:

Platform:

Replies:

110281 Jul 26,2013 06:22 AM Jul 29,2013 06:37 AM JavaScript 1
loading
Tags: General
Saquib Nisar
Asked On July 26, 2013 06:22 AM

Hello,

Would it be possible to include some additional localisation options in the next build.

1. For currency, can you include the option for £
2. For dates, the standard format in the UK dd/mm/yy or dd/mm/yyyy - can these be added please
3. You have a  zip codes mask, can you include an option for UK postcodes 
4. You have a mask for US insurance numbers, can an option for UK national insurance numbers also be provided (http://www.hmrc.gov.uk/manuals/nimmanual/NIM39110.htm).

Thanks.

Saquib

Saravanan G [Syncfusion]
Replied On July 29, 2013 06:37 AM

Hi Saquib,


 Thank you for your interest in Syncfusion products.


 We will consider your requirement for addition localization options in next release. Also we have modified the  existing localization sample for Textboxes and  Datepicker controls to support UK cultures additionally and Mask edit control sample for UK (zip code & insurance number) .

 Sample can be downloaded in below link :

 

http://www.syncfusion.com/uploads/user/directTrac/111173/CustomSamples14537856.zip

 

 1.       For currency, can you include the option for £.

In the attached sample, £ support works for currency by just referring the en-GB localization JS file and using the localize property of currency textbox.

                <script src="scripts/globalize.culture.en-GB.js"></script>

                <script>

$("#localize").ejCurrencyTextbox({

                localize: "en-GB",

                   value: 55

            });

                </script>

2.       For dates, the standard format in the UK dd/mm/yy or dd/mm/yyyy - can these be added please

In datepicker, there is option to change the date format using an  API called “dateFormat”. By using this API we can achieve the above date format and also refer the

en-GB localization JS file in sample as below.

<script src="scripts/globalize.culture.en-GB.js"></script>

                <script>

 $("#datelocalization").ejDatePicker({

                localize: "en-GB",

                dateFormat: "dd/MM/yyyy"

            });

                </script>

3.       You have a  zip codes mask, can you include an option for UK postcodes 

Yes, we have added the UK postcodes option in the attached sample. This can be achieved by using the API called “mask” in mask edit control.

                                                <script>

                                                $("#maskeditZip").ejMaskEdit({

                                                mask: "AA-99"

                                                });

</script>

4.       You have a mask for US insurance numbers, can an option for UK national insurance numbers also be provided (http://www.hmrc.gov.uk/manuals/nimmanual/NIM39110.htm).

Yes, we have modified the attached mask edit sample to showcase UK insurance numbers option and this can be achieved by the same property “mask

                               

                                                <script>

$("#maskeditInc").ejMaskEdit({

                                                mask: "AA999999A"

                                                });

</script>

Regards,

Saravanan G


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.

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.

;