More in this section

Forums / Developing with Sitefinity / How to add a drop down list to sitefinity MVC widget edit mode and populate some dynamic data to the dropdown

How to add a drop down list to sitefinity MVC widget edit mode and populate some dynamic data to the dropdown

1 posts, 0 answered
  1. Ajai
    Ajai avatar
    15 posts
    Registered:
    02 Mar 2015
    28 Nov 2016
    Link to this post

    Hi all,

    I am working with sitefinity 9.1 in that am craeting an mvc widget for a particular functionality. Forthat mvc widget am fetching the details of a dynamic module( it has 3 fieldsTitle,Summary,Description ). I need to put a dropdown or select option in the widget edit mode, that enlist the all published data of the same dynamic module.That means on edit view there is an option to select different items by the title and when someone slect a title we need to get the currespoding Guid.Based on the guid we can fetch the details of that particular item and display in the widget view.

     

    How can i achive the same in mvc widget using widget designer or any other way to do the same without designer? By simple words, how can i populate a dropdown in edit mode of mvc widget?If somebody can provide a code sample that will really help because i haven't woked on widget desiners before.

     

    ThankS

    Ajai

1 posts, 0 answered