Hi I am creating a visualwebpart in sharepoint 2010 with some webpart property. In webpart property I am trying to creating a dropdown using enum.
public enum FileTypeSupport
{
OnlyImage,
OnlyVideo,
ImageAndVideo
};
public static FileTypeSupport fileType;
[Personalizable(PersonalizationScope.Shared),
Category("Caustom Property"),
WebBrowsable(true),
WebDisplayName("File Type Support"),
Description("Specify the number of image which will show at a time")]
public FileTypeSupport SelectedfileType
{
get { return fileType; }
set { fileType = value; }
}
This is working fine but my requirement is to dropdown of {Only Image, Only Video,Image And Video}, i.e with some space(OnlyImage-->Only Image), but it is not supporting in enum. Can anyone tell me how can I fullfill that requirement.