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.

Indian Numeric system with 2 decimal point(Round off )

Thread ID:

Created:

Updated:

Platform:

Replies:

118460 Mar 10,2015 07:21 AM Mar 11,2015 05:05 AM ASP.NET MVC 1
loading
Tags: Grid
Ganga
Asked On March 10, 2015 07:21 AM

how to use indian numeric system in ej grid ..
Ex:12,00,00,000.00. with (round off) decimal point


Gowthami V [Syncfusion]
Replied On March 11, 2015 05:05 AM

Hi Ganga,

Thanks for using Syncfusion products.

Based on your requirement we have created a sample and the same can be downloaded from the following link.

Sample Link: SampleDemo.zip

In the above sample we have set the Locale property of the grid as “gu-IN” for Indian numeric system and also we have set the “Format” property of the column as “{0:n2}” for rounding of the number to two decimal point.

Please refer the below code snippet.

_Layout.cshtml

<script src="~/Scripts/globalize.culture.gu-IN.min.js"></script>

//Necessary script file for referring “gu-IN” culture

.cshtml

(Html.EJ().Grid<SampleDemo.OrdersView>("FlatGrid")

   .Locale("gu-IN")

  .Columns(col =>

        {

col.Field("Freight").HeaderText("Freight").TextAlign(TextAlign.Right).Width(75).Format("{0:n2}").Add();

  }))

Please try the sample and let us know if you have any queries.

Regards,

Gowthami V.



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.

;