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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -