AUTHOR: Richard Hellwege
DATE POSTED: June 18, 2018
How do I prevent the UP and DOWN arrows from changing the values while editing a GridNumericColumn in a RadGrid?
The GridNumericColumn implements a NumericTextBox when editing. The default behavior of the RadNumericTextBox is to increment or decrement values when the UP/DOWN arrow keys are pressed. To change that behavior, an External Column Editor can be used to provide additional configuration options. The code below demonstrates how to configure an external column editor, and how to disable the UP/DOWN key behavior.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
"server"
OnNeedDataSource
"RadGrid1_NeedDataSource"
AutoGenerateColumns
"false"
>
MasterTableView
EditMode
"Batch"
Columns
telerik:GridBoundColumn
DataField
"ID"
/>
telerik:GridNumericColumn
"Value"
ColumnEditorID
"NumericEditor"
</
telerik:GridNumericColumnEditor
NumericTextBox
IncrementSettings-InterceptArrowKeys
></
Documentation Article: Custom Editors Extending Auto-Generated Editors
Resources Buy Try