This is a migrated thread and some comments may be shown as answers.

[Solved] Unable to disable a combobox

2 Answers 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nim
Top achievements
Rank 1
Nim asked on 10 Jun 2011, 08:51 PM
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.

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Jun 2011, 08:51 AM
Hello Nim,

 
This is a known issue, which I am glad to inform you is already fixed. I will suggest you download latest internal build of Telerik extensions for ASP.NET MVC.

Best regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nim
Top achievements
Rank 1
answered on 13 Jun 2011, 07:31 PM
Thank you.
Tags
ComboBox
Asked by
Nim
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Nim
Top achievements
Rank 1
Share this question
or