Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Collapse]Data Editors
   [Expand]Product Information
   [Expand]Common Concepts
   [Collapse]Editor Types
    [Expand]ASPxBinaryImage
    [Expand]ASPxButton
    [Expand]ASPxButtonEdit
    [Expand]ASPxCalendar
    [Expand]ASPxCheckBox
    [Expand]ASPxCheckBoxList
    [Expand]ASPxColorEdit
    [Collapse]ASPxComboBox
      ASPxComboBox Overview
      Incremental Filtering of ASPxComboBox
     [Collapse]Item Loading Modes
       Default Item Loading Mode
       On-Demand Item Loading (Callback Mode)
       Dynamic List Population (Filtering Large Data Sources)
     [Expand]Examples
    [Expand]ASPxDateEdit
    [Expand]ASPxDropDownEdit
    [Expand]ASPxFilterControl
    [Expand]ASPxHyperLink
    [Expand]ASPxImage
    [Expand]ASPxLabel
    [Expand]ASPxListBox
    [Expand]ASPxMemo
    [Expand]ASPxProgressBar
    [Expand]ASPxRadioButton
    [Expand]ASPxRadioButtonList
    [Expand]ASPxSpinEdit
    [Expand]ASPxTextBox
    [Expand]ASPxTimeEdit
    [Expand]ASPxTokenBox
    [Expand]ASPxTrackBar
    [Expand]ASPxValidationSummary
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Dynamic List Population (Filtering Large Data Sources)

The ASPxComboBox provides you with the ability to manually populate a dropdown list with the required item portions, based on the currently applied filter criteria and the performed list scrolling. For instance, when using a large data source, you can only request a few records to be visible on screen. The rest of the items can be loaded on demand, while an end-user is scrolling the list.

In this mode, all data-aware operations (such as filtering) are intended to be performed on the database server side. This means that you can significantly decrease web server workload by loading only a subset of all items when working with large datasets. All of this guarantees rapid data processing and display.

To manually supply list data to the ASPxComboBox editor, you should enable the callback mode (by setting the ASPxAutoCompleteBoxBase.EnableCallbackMode property to True) and handle the following two events: ASPxComboBox.ItemsRequestedByFilterCondition and ASPxComboBox.ItemRequestedByValue.

Handling these events, together with using the 'Contains' filter mode of the ASPxComboBox editor, allows you to deliver your customers the capability for fast and efficient searches against a large amount of data.

Expanded Online Demo

Expanded Example

The following section of the Filtering Large Data Source online demo illustrates how the ASPxComboBox.ItemsRequestedByFilterCondition and ASPxComboBox.ItemRequestedByValue events of the ASPxComboBox editor can be handled to filter the editor's data source containing a large number of records.

Note

To work properly, both the ItemsRequestedByFilterCondition and ItemRequestedByValue events should be handled.

How would you rate this topic?​​​​​​​