I want to display 1000 like 1,000 in Grid (Must have commas). Initial data type is string. I need thousand comma separator.
I have the same questions as in How to change display format of long variable?. But my data type is string.
In this topic they did not have clear answer for KendoUI MVC Grid for thousand comma separator.
I have KendoUI Grid
@(Html.Kendo().Grid((IEnumerable<MyApp.Models.MyModel>)ViewBag.QualReq)
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(p => p.Actual);
})
.DataSource(d => d
.Ajax()
)
)
Model
public class MyModel
{
public virtual string Actual { get; set; }
}
Controller
[OutputCache(Duration = 60)]
public ActionResult MyActionMethod(int RankId = 0)
{
. . .
ViewBag.QualReq = qualificationRequirements.Where(x => x.RankID == RankId).ToList();
. . .
I have not found any information for MVC Grid in Number Formatting topic. http://docs.telerik.com/kendo-ui/framework/globalization/numberformatting