hello,
I am looking help for dropdownlist, I am using following dropdown list in my project :
@Html.DropDownList("FileTypes", new List
{
new SelectListItem{ Text="All", Value = "1" },
new SelectListItem{ Text="Image", Value = "2" },
new SelectListItem{ Text="Document", Value = "3" },
new SelectListItem{ Text="Audio", Value = "4" },
new SelectListItem{ Text="Video", Value = "5" },
new SelectListItem{ Text="VR", Value = "6" },
}, new { @id = "ddlFileType" })
But I want my dropdown to be default open always, without clicking on it.
It should show all list items open always
Thanks

Sachin SinghRank #66 · 26.2K reputationPosted Sep 3, 2021, 7:57 AM EDT
ranjith r36 reputationPosted Sep 4, 2021, 3:14 AM EDT
Guest UserRank #2,192 · 643 reputationPosted Sep 7, 2021, 7:42 AM EDT