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
Guest UserPosted Sep 7, 2021, 11:42 AM
ranjith rPosted Sep 4, 2021, 7:14 AM
Sachin SinghPosted Sep 3, 2021, 11:57 AM