How to add a drop down list to sitefinity MVC widget edit mo

Posted by Community Admin on 04-Aug-2018 07:06

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

All Replies

Posted by Community Admin on 28-Nov-2016 00:00

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

This thread is closed