kendoAutoComplete
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The AutoComplete provides suggestions depending on the typed text and allows multiple value entries.
- C#
- VB.NET
public class kendoAutoComplete : kendoBase
Public Class kendoAutoComplete
Inherits kendoBase
Constructors
kendoAutoComplete()
Constructs a new instance of the kendoAutoComplete class.
Example:
The following example creates an auto-complete field and assigns the list of suggestions through the Options property.
var autoComplete = new kendoAutoComplete();
autoComplete.Options.dataSource = new[] { "Austria", "Belgium", "Denmark", "Germany" };
autoComplete.Options.placeholder = "Type a country...";
autoComplete.Width = 250;
this.Controls.Add(autoComplete);
kendoAutoComplete(options)
Constructs a new instance of the kendoAutoComplete class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates an auto-complete field that accepts multiple comma-separated values.
var autoComplete = new kendoAutoComplete(new
{
dataSource = new[] { "Austria", "Belgium", "Denmark", "Germany" },
filter = "contains",
minLength = 2,
separator = ", "
});
autoComplete.Width = 250;
this.Controls.Add(autoComplete);