Free Trial Buy Now

Toolbar Items - Data Binding

Undo (Ctrl+Z)
Redo (Ctrl+Y)
Align Left
Align Center
Align Right
Justify
v
Smile
v
v
Design
HTML
Preview

Description

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.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.