ASPxClientRibbonItem.GetValue Method
Returns the item value.
Declaration
GetValue(): any
Returns
Type | Description |
---|---|
any | An Object that is the item value. |
Remarks
Use the GetValue method to access the item value. To specify the value, use the ASPxClientRibbonItem.SetValue method.
The type of value returned by the GetValue method depends on the processed ribbon item type. The table below lists the ribbon items with the returned values.
Editor Name | Server-Side Class | Return Value |
---|---|---|
Button | null | |
Check Box |
| |
Color Button | 16-bit RGB hexadecimal representation of a color in a string format, e.g., #ff0000 Or the RibbonColorButtonItem.AutomaticColorItemValue property value, if the automatic color item is selected. | |
Combo Box | A string representation of the item value | |
Date Edit | A date object specifying the item value | |
Drop-Down Button | null | |
Drop-Down Toggle Button |
| |
Drop-Down Gallery | Depends on the RibbonGalleryProperties.ValueType property | |
Gallery Bar | Depends on the RibbonGalleryBarItem.ValueType property | |
Option Button |
| |
Spin Edit | A number specifying the item value | |
Template Item | null | |
Text Box | A string representation of the item value | |
Toggle Button |
|