For a float value, the PropertyGridSpinEditor is always used.
It is not comfortable. For example, the value is always rounded to two decimal places.
How to do that this editor is not used and the SingleConverter (overridden) was used
4 Answers, 1 is accepted
Thank you for writing.
It is a known issue with RadPropertyGrid. You can track its progress, subscribe for status changes and add your comments on the following link: https://feedback.telerik.com/Project/154/Feedback/Details/120331-fix-radpropertygrid-propertygridspineditor-automatically-rounds-decimal-values
Feel free to use the suggested workaround in the referred feedback item.
I hope this information helps. Should you have further questions I would be glad to help.
You did not understand me.
I do not need an PropertyGridSpinEditor for the float value.
SpinEditor for value 0.0000017f - is terrible.
I need a common editor that supports the attribute [TypeConverter(typeof(SingleConverter))]
Thank you for writing back.
The provided explanation was very useful to get a better undertaking of the exact requirement. You can prevent activating the PropertyGridSpinEditor. It is necessary to subscribe to the EditorRequired event and specify what editor to be used. I have prepared a sample code snippet demonstrating how to create a custom editor which uses a RadMaskedEditBoxEditorElement that allows numeric values:
As to the case with implementing our own TypeConverter you can refer to the following help article which is quite useful on this topic: https://docs.telerik.com/devtools/winforms/propertygrid/type-converters
I hope this information helps. If you have any additional questions, please let me know.