More in this section

Forums / Developing with Sitefinity / List items in dropdown in a module?

List items in dropdown in a module?

2 posts, 0 answered
  1. Saad
    Saad avatar
    98 posts
    10 Oct 2008
    23 Oct 2011
    Link to this post

    I know how can we add a drop down from a taxonomy in our custom module. But can we have a dropdown field in our custom module that shows items from another modules items (not from taxonomy)?
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    24 Sep 2012
    26 Oct 2011
    Link to this post
    Hello Saad,

     You can bind the Choices collection of the Multiple Choice field to a custom collection that you could get through your custom module's API. It can be done the same way that the TaxonomyDropDown field is implemented in our Products Module - you should inherit from ChoiceField, override the Configure method, bind the Choices collection to the collection that you have get through your custom module's managers, touch the client-side script and use your field.

    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