Is it possible to have a dynamic list of fields? Having to pre-define the model that the fields are built on dopes not work for our use cases
1 Answer, 1 is accepted
Lance | Manager Technical Support
answered on 17 Jul 2019, 07:23 PM
If you do not know the schema of the model ahead of time and cannot put attributes on properties in a class, you can define your own custom PropertyMetaDataProvider implementation. This will let you programmatically determine the type and define the metadata depending on that type.
If you have trouble wiring up your custom PropertyMetaDataProvider, please open a new ticket to request custom metadata design and attach a small demo with an example of your code/data. I know this may be an inconvenience, it's the fastest way to get you a solution due to the fundamental custom nature of this scenario (i.e. we need to see the dynamic data directly to help).
If this answers your question, you can safely close this case (using the 'marked as resolved' button). If I have misunderstood the question, please reply back with more details about the data and what you're trying to do.
Lance | Technical Support Engineer, Principal
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items