Indian Numeric system with 2 decimal point(Round off )

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


1 Reply

GV Gowthami V Syncfusion Team March 11, 2015 09:05 AM UTC

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.



Loader.
Up arrow icon