Autocomplete(string name, string source)

Returns an autocomplete with the specified form field name and data source.

Parameters

name The name of the form field.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.

Autocomplete(string name, string source, object value)

Returns an autocomplete with the specified form field name, data source and value.

Parameters

name The name of the form field.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
value The value.

Autocomplete(string name, string source, object value, object htmlAttributes)

Returns an autocomplete with the specified form field name, data source, value and HTML attributes.

Parameters

name The name of the form field.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
value The value.
htmlAttributes An object that contains the HTML attributes.

Autocomplete(string name, string source, object value, string autocompleteId, string autocompleteText, object htmlAttributes)

Returns an autocomplete with the specified form field name, data source, value and HTML attributes. The returned autocomplete will create two input elements: a hidden element for the name and value, and a text element for the visible autocomplete.

Parameters

name The name of the form field.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
value The value.
autocompleteId The id of the autocomplete input element.
autocompleteText The initial text of the autocomplete input element.
htmlAttributes An object that contains the HTML attributes.

AutocompleteFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, string source)

Returns an autocomplete initialized using the specified data source and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.

AutocompleteFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, string source, string autocompleteId, string autocompleteText)

Returns an autocomplete initialized using the specified data source and the property represented by the specified expression. The returned autocomplete will create two input elements: a hidden element for the property, and a text element for the visible autocomplete.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
autocompleteId The id of the autocomplete input element.
autocompleteText The initial text of the autocomplete input element.

AutocompleteFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, string source, object htmlAttributes)

Returns an autocomplete initialized using the specified data source, HTML attributes and the property represented by the specified expression.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
htmlAttributes An object that contains the HTML attributes.

AutocompleteFor<TProperty>(System.Linq.Expressions.Expression<System.Func<TModel, TProperty>> expression, string source, string autocompleteId, string autocompleteText, object htmlAttributes)

Returns an autocomplete initialized using the specified data source, HTML attributes and the property represented by the specified expression. The returned autocomplete will create two input elements: a hidden element for the property, and a text element for the visible autocomplete.

Type Parameters

TProperty The type of the property.

Parameters

expression The expression that identifies the property.
source The data source. Can be a URL (must contain '/'), the name of a JavaScript function or the name of an array variable.
autocompleteId The id of the autocomplete input element.
autocompleteText The initial text of the autocomplete input element.
htmlAttributes An object that contains the HTML attributes.