GridNumericColumn
When in browser mode, GridNumericColumn looks and behaves like a standard GridBoundColumn. When in edit mode, however, it displays a RadNumericTextBox control. This column type is for numeric values. Its DataField property must identify a field with a valid data type (Number or Decimal). This column type is editable (implements the IGridEditableColumn interface) and by default provides GridNumericColumnEditor as its column editor.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridNumericColumn : GridBoundColumn, IStateManager, IComparable, IGridEditableColumn, IGridDataColumn
Inheritance: objectGridColumnGridEditableColumnGridBoundColumnGridNumericColumn
Implements:
Inherited Members
Constructors
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public GridNumericColumn()
Properties
Gets or sets whether the GridNumericColumn should autocorrect out of range values to valid values
public bool AllowOutOfRangeAutoCorrect { get; set; }
The default value is true
Gets or sets the NumberFormat.AllowRounding property of the RadNumericTextBox control.
public bool AllowRounding { get; set; }
The NumberFormat.AllowRounding property of the RadNumericTextBox control.
Gets or sets a value indicating the multiplication factor.
public double DbValueFactor { get; set; }
Gets or sets the NumberFormat.DecimalDigits property of the RadNumericTextBox control.
public int DecimalDigits { get; set; }
The NumberFormat.DecimalDigits property of the RadNumericTextBox control.
Gets or sets the NumberFormat.KeepNotRoundedValue property of the RadNumericTextBox control.
public bool KeepNotRoundedValue { get; set; }
The NumberFormat.KeepNotRoundedValue property of the RadNumericTextBox control.
Gets or sets the largest possible value of a GridNumericColumn.
public virtual double MaxValue { get; set; }
The default value is positive 2^46.
Gets or sets the smallest possible value of a GridNumericColumn.
public virtual double MinValue { get; set; }
The default value is negative -2^46.
Type of object that is used to wrap the DbValue property.
public Type NumericDataType { get; set; }
Default value is set to the Double.
Gets or sets the NumericType property of the RadNumericTextBox control.
public NumericType NumericType { get; set; }
The NumericType property of the RadNumericTextBox control.
Gets or sets a value indicating whether the button is displayed in the RadInput control.
public virtual bool ShowSpinButtons { get; set; }
true if the button is displayed; otherwise, false. The default value is true
Methods
Creates a copy of the current column.
public override GridColumn Clone()
Overrides:
Note: When implementing/overriding this method be sure to call the base member or call CopyBaseProperties to be sure that all base properties will be copied accordingly
protected override void CopyBaseProperties(GridColumn fromColumn)
Overrides:
protected override IGridColumnEditor CreateDefaultColumnEditor()
Overrides:
Gets the value of the Text property of a textbox control found in the cell, used to set the value of the CurrentFilterValue property.
Modifies the CurrentFilterFunction and CurrentFilterValue properties according to the function given and the corresponding filter text-box control in the filtering item.
public override void RefreshCurrentFilterValue(GridFilteringItem filteringItem, string functionName)
Overrides:
Modifies the CurrentFilterValue property according to the corresponding selected item in the filter text-box control in the filtering item.
public override void RefreshCurrentFilterValue(GridFilteringItem filteringItem)
Overrides:
Sets the value of the property CurrentFilterValue as a text on the TextBox control found in the cell
protected override void SetCurrentFilterValueToControl(TableCell cell)
Overrides:
Instantiates the filter controls (text-box, image.) in the cell given