Class RadDropDownMenu
Represents a drop down menu used in radComboBox and radMenu.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[RadToolboxItem(false)]
public class RadDropDownMenu : RadItemsPopupControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, IPopupControl, IItemsControl
Constructors
RadDropDownMenu()
Initializes a new instance of the RadDropDownMenu class
Declaration
public RadDropDownMenu()
RadDropDownMenu(RadElement)
Creates an instance of the RadDropDownMenu class.
Declaration
public RadDropDownMenu(RadElement ownerElement)
Parameters
Rad An instance of the RadElement class that represents the owner of this drop down menu |
Properties
CausesValidation
Declaration
public bool CausesValidation { get; set; }
Property Value
System.
|
ClickedItem
Gets the item that has been clicked. This property is valid when the drop-down is closed by an item click.
Declaration
public RadItem ClickedItem { get; }
Property Value
HeaderImage
Gets or sets menu header column image
Declaration
public Image HeaderImage { get; set; }
Property Value
System.
|
HeaderText
Gets or sets menu header column text
Declaration
public string HeaderText { get; set; }
Property Value
System.
|
IsTwoColumnMenu
Indicates whether the DropDown contains one or two cloumns of items.
Declaration
public virtual bool IsTwoColumnMenu { get; set; }
Property Value
System.
|
PopupElement
Gets or sets the popup element.
Declaration
public RadElement PopupElement { get; set; }
Property Value
RootTreeHandler
Declaration
public IComponentTreeHandler RootTreeHandler { get; }
Property Value
ThemeClassName
Declaration
public override string ThemeClassName { get; set; }
Property Value
System.
|
Overrides
Methods
CanClosePopup(RadPopupCloseReason)
Declaration
public override bool CanClosePopup(RadPopupCloseReason reason)
Parameters
Rad
|
Returns
System.
|
Overrides
CanNavigate(Keys)
CanProcessItem(RadMenuItemBase)
Declaration
protected virtual bool CanProcessItem(RadMenuItemBase menuItem)
Parameters
Rad
|
Returns
System.
|
CanProcessMnemonic(Char)
Declaration
public override bool CanProcessMnemonic(char keyData)
Parameters
System.
|
Returns
System.
|
Overrides
CheckCanNavigate(Keys)
CheckCanProcessMnemonic(IItemsControl, Char)
Declaration
protected virtual bool CheckCanProcessMnemonic(IItemsControl itemsControl, char keyData)
Parameters
IItems
|
System.
|
Returns
System.
|
ControlDefinesThemeForElement(RadElement)
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
Rad
|
Returns
System.
|
Overrides
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.
|
CreatePopupElement()
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
DoOnItemClicked(RadMenuItemBase, MouseEventArgs)
Declaration
protected virtual void DoOnItemClicked(RadMenuItemBase menuItem, MouseEventArgs e)
Parameters
Rad
|
System.
|
EnsureItemEnabled(RadItem, Boolean)
Selects next enabled item.
Declaration
protected virtual void EnsureItemEnabled(RadItem item, bool isUp)
Parameters
Rad The currently selected item. |
System. Direction. |
GetMenuItemAtPoint(Point)
Declaration
protected RadMenuItemBase GetMenuItemAtPoint(Point location)
Parameters
System.
|
Returns
GetOwnerScreenLocation()
Declaration
protected virtual Point GetOwnerScreenLocation()
Returns
System.
|
GetOwnerSize()
Declaration
protected virtual Size GetOwnerSize()
Returns
System.
|
InitializeChildren()
Declaration
protected virtual void InitializeChildren()
OnDropDownClosed(RadPopupClosedEventArgs)
Declaration
protected override void OnDropDownClosed(RadPopupClosedEventArgs args)
Parameters
Overrides
OnDropDownLocationNeeded(Point)
Declaration
protected virtual Point OnDropDownLocationNeeded(Point point)
Parameters
System.
|
Returns
System.
|
OnItemDeselected(ItemSelectedEventArgs)
Declaration
protected override void OnItemDeselected(ItemSelectedEventArgs args)
Parameters
Overrides
OnItemsChanged(RadItemCollection, RadItem, ItemsChangeOperation)
Declaration
protected virtual void OnItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
Parameters
Rad
|
Rad
|
Items
|
OnItemSelected(ItemSelectedEventArgs)
Declaration
protected override void OnItemSelected(ItemSelectedEventArgs args)
Parameters
Overrides
OnKeyDown(Keys)
Declaration
public override bool OnKeyDown(Keys keyData)
Parameters
System.
|
Returns
System.
|
Overrides
OnLoad(Size)
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.
|
Overrides
OnMouseClick(MouseEventArgs)
Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
System.
|
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.
|
Overrides
OnMouseWheel(Control, Int32)
Declaration
public override bool OnMouseWheel(Control target, int delta)
Parameters
System.
|
System.
|
Returns
System.
|
Overrides
OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
Declaration
protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
System.
|
Screen
|
Overrides
OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
Declaration
protected override void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
System.
|
Tool
|
Overrides
PerformItemClick(RadMenuItemBase)
Declaration
protected void PerformItemClick(RadMenuItemBase menuItem)
Parameters
Rad
|
PerformMenuItemClick(RadMenuItemBase)
Declaration
protected virtual void PerformMenuItemClick(RadMenuItemBase menuItem)
Parameters
Rad
|
ProcessDialogChar(Char)
Declaration
protected override bool ProcessDialogChar(char charCode)
Parameters
System.
|
Returns
System.
|
ProcessLeftRightNavigationKey(Boolean)
ProcessMnemonic(Keys)
Declaration
protected virtual bool ProcessMnemonic(Keys keyData)
Parameters
System.
|
Returns
System.
|
ProcessUpDownNavigationKey(Boolean)
SetVisibleCore(Boolean)
Declaration
protected override void SetVisibleCore(bool value)
Parameters
System.
|
Show()
Displays the RadDropDownMenu in its default position.
Declaration
public void Show()
Show(Point)
Displays the RadDropDownMenu relative to the specified screen location.
Declaration
public void Show(Point point)
Parameters
System. The horizontal and vertical location of the screen's upper-left corner, in pixels. |
Show(Point, RadDirection)
Positions the ToolStripDropDown relative to the specified screen location and with the specified direction.
Declaration
public void Show(Point point, RadDirection popupDirection)
Parameters
System. The horizontal and vertical location of the screen's upper-left corner, in pixels. |
Rad One of the RadDirection values. |
Show(Int32, Int32)
Displays the RadDropDownMenu relative to the specified screen location.
Declaration
public void Show(int x, int y)
Parameters
System. The horizontal screen coordinate, in pixels. |
System. The vertical screen coordinate, in pixels. |
Show(Control, Point)
Positions the RadDropDownMenu relative to the specified control location.
Declaration
public void Show(Control control, Point point)
Parameters
System. The control that is the reference point for the RadDropDownMenu position. |
System. The horizontal and vertical location of the reference control's upper-left corner, in pixels. |
Show(Control, Point, RadDirection)
Positions the RadDropDownMenu relative to the specified control location and with the specified direction.
Declaration
public void Show(Control control, Point point, RadDirection popupDirection)
Parameters
System. The control that is the reference point for the RadDropDownMenu position. |
System. The horizontal and vertical location of the reference control's upper-left corner, in pixels. |
Rad One of the RadDirection values. |
Show(Control, Int32, Int32)
Positions the RadDropDownMenu relative to the specified control location.
Declaration
public void Show(Control control, int x, int y)
Parameters
System. The control that is the reference point for the RadDropDownMenu position. |
System. The horizontal coordinate relative to the control, in pixels. |
System. The vertical coordinate relative to the control, in pixels. |
Show(RadItem, Point)
Positions the RadDropDownMenu relative to the specified RadItem location.
Declaration
public void Show(RadItem item, Point point)
Parameters
Rad The RadItem that is the reference point for the RadDropDownMenu position. |
System. The horizontal and vertical location of the RadItem's upper-left corner, in pixels. |
Show(RadItem, Point, RadDirection)
Positions the RadDropDownMenu relative to the specified RadItem location and with the specified direction.
Declaration
public void Show(RadItem item, Point point, RadDirection popupDirection)
Parameters
Rad The RadItem that is the reference point for the RadDropDownMenu position. |
System. The horizontal and vertical location of the RadItem's upper-left corner, in pixels. |
Rad One of the RadDirection values. |
Show(RadItem, Int32, Int32)
Positions the RadDropDownMenu relative to the specified RadItem location.
Declaration
public void Show(RadItem item, int x, int y)
Parameters
Rad The RadItem that is the reference point for the RadDropDownMenu position. |
System. The horizontal coordinate relative to the control, in pixels. |
System. The vertical coordinate relative to the control, in pixels. |
Show(RadItem, Int32, RadDirection)
Positions the RadDropDownMenu relative to the specified RadItem location and with specified direction and offset according to the owner.
Declaration
public void Show(RadItem item, int ownerOffset, RadDirection popupDirection)
Parameters
Rad The RadItem that is the reference point for the RadDropDownMenu position. |
System. Specifies the offset from the owner in pixels. |
Rad One of the RadDirection values. |
ShowCore(Point, Int32, RadDirection)
Declaration
protected virtual void ShowCore(Point point, int ownerOffset, RadDirection popupDirection)
Parameters
System.
|
System.
|
Rad
|