This question is locked. New answers and comments are not allowed.
Is there a way to pass optionlabel to Html.Telerik().DropDownList()
I' am trying to migrate this portion of code
<%: Html.DropDownListFor(x => x, new SelectList(MyColorList, @"Value", @"Text"), "Please select a color")%>
to
<%=Html.Telerik().DropDownList()
.BindTo(new SelectList(MyColorList, @"Value", @"Text"))
%>
but I cannot figure out how to pass the optionLabel "Please select a color"
I' am trying to migrate this portion of code
<%: Html.DropDownListFor(x => x, new SelectList(MyColorList, @"Value", @"Text"), "Please select a color")%>
to
<%=Html.Telerik().DropDownList()
.BindTo(new SelectList(MyColorList, @"Value", @"Text"))
%>
but I cannot figure out how to pass the optionLabel "Please select a color"