This demo shows how to bind toolbar items (a dropdown menu, dropdown item picker, and combo box) to data sources.
In addition to populating these toolbar items with data directly in the ASPX markup, the ASPxHtmlEditor allows you to bind them to data sources via the following properties:
- DataSourceID. Specifies the bound data source's name.
- TextField, ValueField, and ImageUrlField. Allow you to designate the data source's fields that provide captions, values, and image URLs for individual control items.
- TooltipField (for dropdown menus and dropdown item pickers only). Use it to designate the bound data source's field providing item tooltips.
- BeginGroupField (for dropdown menus only). Allows you to designate the field that contains Boolean values for a menu item's BeginGroup flag.
In combo boxes, these properties are available via the PropertiesComboBox property set.
In this demo, the dropdown menu, dropdown item picker, and combo box toolbar items are bound to the MenuData.xml, ItemPickerData.xml, and ComboBoxData.xml files, which provide all the required fields for data binding.