Tab

RibbonItemDataFields.ItemTypeField Property

Gets or sets the name of a data field (or an xml element’s attribute) which provides item types.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue("ItemType")]
public virtual string ItemTypeField { get; set; }

Property Value

Type Default Description
String

“ItemType”

A string value that specifies the name of the required data source field.

Remarks

The ItemTypeField property is in effect if the ASPxRibbon control is bound to a data source.

Use the ItemTypeField property to specify the bound data source’s data field (or an xml element’s attribute) which stores item types.

The available ItemTypeField field values are listed below.

Item Type ItemTypeField Field Value
RibbonButtonItem Button (default value)
RibbonCheckBoxItem CheckBox
RibbonColorButtonItem ColorButton
RibbonComboBoxItem ComboBox
RibbonDateEditItem DateEdit
RibbonDropDownButtonItem DropDownButton
RibbonDropDownToggleButtonItem DropDownToggleButton
RibbonGalleryBarItem GalleryBar
RibbonGalleryDropDownItem GalleryDropDown
RibbonOptionButtonItem OptionButton
RibbonSpinEditItem SpinEdit
RibbonTextBoxItem TextBox
RibbonToggleButtonItem ToggleButton

Example

ASPxRibbon_binding

<Group Text="Graph">
     <Item Text="X-Y Plot" SmallImageUrl="~/Ribbon/Images/MathIcons/XYPlot.png">
     </Item>
     <Item Text="Polar Plot" SmallImageUrl="~/Ribbon/Images/MathIcons/PolarPlot.png">
     </Item>
     <Item Text="3D Plot" SmallImageUrl="~/Ribbon/Images/MathIcons/3DPlot.png">
     </Item>
     <Item Text="Grid lines" ItemType="CheckBox">
     </Item>
     <Item Text="Numbered" ItemType="CheckBox">
     </Item>
     <Item Text="Auto scale" ItemType="CheckBox">
     </Item>
     <Item Text="View" ItemType="DropDownButton" Size="Large" LargeImageUrl="~/Ribbon/Images/MathIcons/View.png">
          <SubItem Text="Zoom" ItemType="DropDownButton" SmallImageUrl="~/Ribbon/Images/MathIcons/Zoom.png">
          </SubItem>
          <SubItem Text="Unzoom" ItemType="DropDownButton" SmallImageUrl="~/Ribbon/Images/MathIcons/Unzoom.png">
          </SubItem>
          <SubItem Text="FullScreen" ItemType="DropDownButton" SmallImageUrl="~/Ribbon/Images/MathIcons/FullScreen.png">
          </SubItem>
     </Item>
</Group>
See Also