Default Editors
Depending on the column's type, RadGridView activates an appropriate editor to handle cell's value changes. The default editors are listed below:
Column's type | Default editor |
---|---|
GridViewTextBoxColumn | RadTextBoxEditor |
GridViewRatingColumn | GridSpinEditor |
GridViewMultiComboBoxColumn | RadMultiColumnComboBoxElement |
GridViewMaskBoxColumn | RadMaskedEditBoxEditor |
GridViewHyperlinkColumn | RadTextBoxEditor |
GridViewDecimalColumn | GridSpinEditor |
GridViewDateTimeColumn | RadDateTimeEditor/GridTimePickerEditor |
GridViewComboBoxColumn | RadDropDownListEditor |
GridViewColorColumn | GridColorPickerEditor |
GridViewCheckBoxColumn | RadCheckBoxEditor |
GridViewCalculatorColumn | RadCalculatorEditor |
GridViewBrowseColumn | GridBrowseEditor |
GridViewTimeSpanColumn | GridTimeSpanPickerEditor |
The default editor can easily be replaced by using the EditorRequired event and specifying either the EditorType or the Editor property in the EditorRequiredEventArgs. This is the appropriate place to assign a custom editor as well. If you need to apply some settings to the editor, the CellEditorInitialized event is the right place to do it.
Accessing editors and setting their properties.
In some cases you will need to set the properties of the editor element. The following examples will illustrate how you can get the elements of the most used editors in the CellEditorInitialized event handler.