Dynamic list on form

2 posts, 0 answers
  1. Joe
    Joe avatar
    2 posts
    Member since:
    May 2019

    Posted 17 Jul Link to this post

    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
  2. Lance | Team Lead - US DevTools Support
    Admin
    Lance | Team Lead - US DevTools Support avatar
    1047 posts

    Posted 17 Jul Link to this post

    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
Back to Top