How to assign the editor control type of a dynamically added property in code. I do not want to set the EditorTemplate nor do I want to use EditorAttributes...
1 Answer, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 01 Apr 2021, 08:08 AM
Hi Alexander,
Using EditorTemplate or EditorAttributes is the way to change the default editor for a property. I am afraid that I am out of options here. Still, you can reconsider using the EditorTemplate property. You can set it in code. For example, you can subscribe to the AutoGeneratingPropertyDefinition event of the control. In the event handler, you can get the current generated property definition and set its EditorTemplate.