1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Module Builder - Programmatically retrieve dropdown items from Choice field type

Module Builder - Programmatically retrieve dropdown items from Choice field type

2 posts, 0 answered
  1. David
    David avatar
    99 posts
    Registered:
    06 Sep 2012
    09 Mar 2012
    Link to this post
    I created a module that contains a custom field of type Choice. I am building a Widget that contains a form which saves data to the module. I'd like the dropdown in the widget to contain the same choices that were added to the custom field. Is this possible?
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    14 Mar 2012
    Link to this post
    Hello David,

     Since once the Choice Field's Choices collection has been populated by you, you won't be able to change it, then why don't you directly hardcode the same values into your widget's dropdown? There is no need to dynamically populated these items each time the widget loads, as they will remain the same.

    Greetings,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered