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

[Solved] Select from c # code in the controller an initial value into AutoComplete

0 Answers 91 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.
Davide Milani
Top achievements
Rank 1
Davide Milani asked on 25 Oct 2010, 11:16 PM
You can set a value from the controller?

For example:  ViewData["Product"]= "Apple"

the question is not clear?

<%

 

Html.Telerik().AutoComplete().Name("Product")

.BindTo((List<string>)ViewData["ProductList"])

.AutoFill(true)

.HtmlAttributes(new {style="width:300px"}).HighlightFirstMatch(true)

.Filterable(filtering => {filtering.FilterMode(AutoCompleteFilterMode.StartsWith);})

%>

Tags
ComboBox
Asked by
Davide Milani
Top achievements
Rank 1
Share this question
or