This question is locked. New answers and comments are not allowed.
Hello,
For the following code:
<%
var options = new List<string>();
options.Add("Apple");
options.Add("Banana");
options.Add("Clementine");
%>
<%= Html.Telerik().ComboBox()
.Name("fruit").BindTo(
(IEnumerable<DropDownItem>) (from opt in options
select new Telerik.Web.Mvc.UI.DropDownItem { Text = opt, Value = opt}).ToList())
.Enable(false) %>
it produces a grey-out combo box. Yet when I click the drop down, it still allows me to select a different option.
Am I missing something?
Thank you.
For the following code:
<%
var options = new List<string>();
options.Add("Apple");
options.Add("Banana");
options.Add("Clementine");
%>
<%= Html.Telerik().ComboBox()
.Name("fruit").BindTo(
(IEnumerable<DropDownItem>) (from opt in options
select new Telerik.Web.Mvc.UI.DropDownItem { Text = opt, Value = opt}).ToList())
.Enable(false) %>
it produces a grey-out combo box. Yet when I click the drop down, it still allows me to select a different option.
Am I missing something?
Thank you.