This question is locked. New answers and comments are not allowed.
Hi Guys
I am using the Html.Telerik().AutoComplete() in an asp.net mvc 4 project..
I wanted to know how can i limit the number of rows being displayed in the Autocomplete result set.
the way I am using this, I am using server side binding. passing a complete viewbag with all rows to the view and use the BindTo method on the autocomplete:
@(Html.Telerik().AutoComplete()
.Name("searchText")
.Value(Model.FilterText)
.BindTo(Model.ProductEditions.Select(p => p.ProductFamilyName))
.HtmlAttributes(new { Class = "filterText" })
.DropDownHtmlAttributes(new { size = "2" })
.Filterable(filtering =>
{
filtering.FilterMode(AutoCompleteFilterMode.Contains);
filtering.MinimumChars(Model.MinCharsToShowAutocomplete);
}
)
)
Thanks