DropdownList
Basic usage
DropdownList with search functionality in the dropdown popup. Can get data from an Url which must return a collection of KeyContent.
Custom filter function
DropdownList with a custom filter function. The function will receive the query as parameter and must return a filter(content) function.
In this example we could search for "Nolan Bruce" or "Bruce Nolan" (we could also search for "no br"), and we would get the same result with both queries, because we are filtering by each word separately.
Using the default filtering the first query wouldn't return any results.
In this example we could search for "Nolan Bruce" or "Bruce Nolan" (we could also search for "no br"), and we would get the same result with both queries, because we are filtering by each word separately.
Using the default filtering the first query wouldn't return any results.
Remote search, external api
please select
Getting data from the git api on search using the
Using the same cache key "g1", so searching in one control will populate the other one with data as well.
SearchFunc
.
ItemFunc
and CaptionFunc
are used to specify custom rendering functions for the items and the caption.Using the same cache key "g1", so searching in one control will populate the other one with data as well.
Predefined parameters
Setting a predefined parameters with values for the data request.
We can also set ParameterFunc to a js function that will return an object with parameters. Parameters with the same name will merge into a collection.
Binding to parents
parent txt:
categories:
please select
We can bind to one or multiple parents, by specifying the client parent control id and parameter name to be attached to the child's data request.
We could do that using the
We could do that using the
Parent(parentId, paramName = "parent", loadOnChange = true)
extension.
Note: all awesome data select editors and the Grid, AjaxList can have parents and predefined parameters.
Comments