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

[Solved] ComboBox in ASP.net MVC controls

2 Answers 124 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.
Anjali
Top achievements
Rank 1
Anjali asked on 13 Dec 2010, 06:06 PM
Hi,

  I am using ASP.NET MVC Q1 2010 SP2. I created  a new application and followed everything step by step that is mention in this article
http://www.telerik.com/help/aspnet-mvc/getting-started-using-telerik-extensions-for-asp.net-mvc-in-your-project.html
but when I went to index.aspx page in view, I did

<%

 

= Html.Telerik().ComboBox().Name("ComboBox").AutoFill(Model.ComboBoxAttributes.AutoFill.Value).SelectedIndex(Model.ComboBoxAttributes.SelectedIndex.Value) .BindTo(new SelectList(Model.Products, "ProductID", "ProductName")) .HtmlAttributes(new { style = string.Format("width:{0}px", Model.ComboBoxAttributes.Width) }) .Filterable(filtering => { if (Model.ComboBoxAttributes.FilterMode != 0) { filtering.FilterMode(AutoCompleteFilterMode.StartsWith); } }) .HighlightFirstMatch(Model.ComboBoxAttributes.HighlightFirst.Value) %>

 


and I got the error

'Telerik.Web.Mvc.UI.ViewComponentFactory<object>' does not contain a definition for 'ComboBox' and no extension method 'ComboBox' accepting a first argument of type 'Telerik.Web.Mvc.UI.ViewComponentFactory<object>' could be found (are you missing a using directive or an assembly reference?)

I can see other controls in intellisense, but not combobox or dropdown list control. I am very new tro MVC.

Please let me know what am i doing wrong.

2 Answers, 1 is accepted

Sort by
0
Anjali
Top achievements
Rank 1
answered on 17 Dec 2010, 06:46 PM
can someone please reply to my post. Do I need any later version in order to see the dropdownList control.

Please help.
0
al
Top achievements
Rank 1
answered on 20 Dec 2010, 12:13 AM
Hi mate,
would not cost you anything to try using the latest dll. Am using the latest one and i can see the dropdownlist and combo in intellisense. It depends if the controls were in there in Q2 i guess.
i`d suggest use the latest dll.
Cheers.
Tags
ComboBox
Asked by
Anjali
Top achievements
Rank 1
Answers by
Anjali
Top achievements
Rank 1
al
Top achievements
Rank 1
Share this question
or