AUTHOR: Patrick McDonough
DATE POSTED: August 07, 2018
The GridNumericColumn uses a RadNumericTextBox as an editor which contains a numeric format of "N" by default. This causes the group separator to be commas in en-US culture.
In order to change the appearance of a GridNumericColumn during edit mode, use a GridNumericColumnEditor. With this editor, the numericTextBox can be formatted to contain no separators with its NumberFormat.GroupSeparator property. Here are the steps to adjust the style of the editor:
1. Add a ColumnEditorID to a GridNumericColumn to reference the GridNumericColumnEditor.
<
telerik:GridNumericColumn
DataField
=
"MyYear"
HeaderText
"My Year"
UniqueName
DataType
"System.Int32"
ColumnEditorID
"NumericEditor1"
>
</
2. Create a GridNumericColumnEditor containing a NumericTextBox. 3. Set the NumberFormat - GroupSeparator's value as an empty string.
telerik:GridNumericColumnEditor
ID
runat
"server"
NumericTextBox
NumberFormat
GroupSeparator
""
DecimalDigits
"0"
/>
Resources Buy Try