asp.net mvc 3 - Removing comma from IntegerTextBoxFor -
i have question integertextboxfor telerik extensions mvc. i'm trying remove use of commas it. here have.
editor template called int32.cshtml
@model system.int32 @using telerik.web.mvc.ui @html.telerik().integertextboxfor(model => model)
model
[nopresourcedisplayname("admin.returnrequest.list.searchorderid")] public int searchorderid { get; set; }
i have tried adding [displayformat(dataformatstring="{0:g}")] model has done nothing. tried using 0:#####, 0:00000, , 0:n.
you can configure group separator calling numbergroupseparator
method on integertextboxfor(model => model)
.
so if don't need separator can set empty string:
@html.telerik().integertextboxfor(model => model).numbergroupseparator("")
Comments
Post a Comment