Hello.
I'm doing a dropdownlist with the MVC helper like this, but the option with empty text is not showing, a red line is showing instead.
How can I show the empty option so that users can select, yes, no, or empty ( show all ) without having to set a text or value for that option?
Thanks in advance.
I'm doing a dropdownlist with the MVC helper like this, but the option with empty text is not showing, a red line is showing instead.
How can I show the empty option so that users can select, yes, no, or empty ( show all ) without having to set a text or value for that option?
@(Html.Kendo().DropDownList().Name("isPublic") .Items(items => { items.Add().Text("").Value(""); items.Add().Text("Yes").Value("true"); items.Add().Text("No").Value("false"); } ) )Thanks in advance.
