Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Dynamic Dropdown webpart property

$
0
0

I have to create a dropdown webpart property but the values of that property has to come from data from the site. How can I create dinamically that enum to populate the dropdown like the listeRendu enum is populating the ListeRendu property? Thanks

        public enum listeRendu        {            Crossfade = 0,            Scroll        };        //create get/set for the property        protected listeRendu _listeRendu;        [Category("WebPart Configuration")]        [WebPartStorage(Storage.Shared)]        [WebDisplayName("Type de rendu")]        [WebDescription("Type de rendu")]        [WebBrowsable(true)]        [Personalizable(true)]        public listeRendu ListeRendu        {            get { return _listeRendu; }            set { _listeRendu = value; }        }


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>