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.
Docs and Demo
Please follow the tutorial in the Third Party Data Source
section in the DataForm's Data Source documentation
. You can also review the accompanying demo source code here on GitHub
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