Skip to main content

MVCxColumnComboBoxProperties.BindList(ItemsRequestedByFilterConditionMethod, ItemRequestedByValueMethod) Method

Binds an item list to the ComboBox editor used to edit column values.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public void BindList(
    ItemsRequestedByFilterConditionMethod itemsRequestedByFilterConditionMethod,
    ItemRequestedByValueMethod itemRequestedByValueMethod
)

Parameters

Name Type Description
itemsRequestedByFilterConditionMethod ItemsRequestedByFilterConditionMethod

A delegate method of the ItemsRequestedByFilterConditionMethod type that enables you to implement custom selection of the requested items by the filter conditions.

itemRequestedByValueMethod ItemRequestedByValueMethod

A delegate method of the ItemRequestedByValueMethod type that enables you to implement custom selection of the requested item by the value.

Remarks

This specifically parameterized BindList method can be used to display and filter the editor’s data source containing a large amount of records. The method’s parameters refer to delegate methods that can be declared as static methods within a model class. By providing implementation of these methods, you can populate the editor’s dropdown list with the required item portions (based on the currently applied filter criteria and the performed list scrolling) and obtain the data item corresponding to the editor’s selected item.

Using this approach, the ComboBox doesn’t perform filter operations on the entire database by itself. Instead, all the necessary data processing is delegated to the database server, which returns only small portions of the required data displayed by the editor.

This technique minimizes the application server’s workload, and significantly reduces the application’s response time. Using this technique allows you to deliver your customers the capability to quickly and efficiently search against a huge amount of data.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BindList(ItemsRequestedByFilterConditionMethod, ItemRequestedByValueMethod) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also