[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.AutoCompleteBaseBuilder-3.CustomFilter

CustomFilter Method

CustomFilter(string)

Configurates CustomFilter. Sets a custom filter function for filtering items.

Declaration
public virtual TBuilder CustomFilter(string value)
Public Overridable Function CustomFilter(value As String) As TBuilder
Parameters
Type Name Description
string value

The value.

Returns
Type Description
TBuilder

Current builder.

Remarks

The function takes three parameters: the data item to test, the current query text, and the display text after DisplayMemberPath processing. It returns true to include the item and false to exclude it. When set, CaseSensitiveSearch, BeginsWithSearch(bool) and IsContentHtml are ignored, while MinLength(int) and MaxItems(int) still apply. This property has no effect when ItemsSourceFunction(string) is set. The default value is null.