This is a migrated thread and some comments may be shown as answers.

Dynamic list on form

1 Answer 87 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Veteran
Joe asked on 17 Jul 2019, 04:18 PM
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

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 17 Jul 2019, 07:23 PM
Hi Joe,

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.


Further Assistance

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).


Wrapping Up

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.

Thank you.

Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataForm
Asked by
Joe
Top achievements
Rank 1
Veteran
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or