Class RadBreadCrumbElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadBreadCrumbElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadBreadCrumbElement()
Declaration
public RadBreadCrumbElement()
Fields
DefaultHeightProperty
IsInEditModeProperty
SpacingBetweenItemsProperty
Properties
AutoCompleteSuggestHelper
Gets the auto complete suggest helper.
Declaration
public BreadCrumbAutoCompleteSuggestHelper AutoCompleteSuggestHelper { get; }
Property Value
ChildMember
Gets or sets a property name which will be used to define a relation of the data items.
Note that this property is ignored when Default
Declaration
public virtual string ChildMember { get; set; }
Property Value
System.
|
DataMember
Gets or sets the name of the list or table in the data source.
Note that this property is ignored when Default
Declaration
public virtual string DataMember { get; set; }
Property Value
System.
|
DataSource
Gets or sets the data source.
Note that this property is ignored when Default
Declaration
public virtual object DataSource { get; set; }
Property Value
System.
|
DefaultHeight
Gets or sets the height of the breadcrumb element.
Declaration
public int DefaultHeight { get; set; }
Property Value
System.
|
DefaultTreeViewElement
Associates a Rad
Declaration
public RadTreeViewElement DefaultTreeViewElement { get; set; }
Property Value
DisplayMember
Gets or sets a property name which will be used to extract the text of the data items.
Note that this property is ignored when Default
Declaration
public virtual string DisplayMember { get; set; }
Property Value
System.
|
HeaderDropDownButtonElement
Returns the button that contains all collapsed and default items.
Declaration
public BreadCrumbDropDownButtonElement HeaderDropDownButtonElement { get; }
Property Value
HistoryDropDownButtonElement
Returns the history button.
Declaration
public BreadCrumbDropDownButtonElement HistoryDropDownButtonElement { get; }
Property Value
ImageElement
Returns the Light
Declaration
public LightVisualElement ImageElement { get; }
Property Value
InternalTreeViewElement
Gets the internal TreeViewElement used in the bread crumb.
Note that when Default
Declaration
public RadTreeViewElement InternalTreeViewElement { get; }
Property Value
IsAutoCompleteEnabled
Gets or sets a value indicating, whether the AutoComplete is enabled in EditMode. By default this property is True.
Declaration
public bool IsAutoCompleteEnabled { get; set; }
Property Value
System.
|
IsHistoryEnabled
A property of type bool, which specifies whether history of visited paths should be kept. By default this property is False.
Declaration
public bool IsHistoryEnabled { get; set; }
Property Value
System.
|
IsTextModeEnabled
A property of type bool, which controls whether the text mode of the breadcrumb is enabled. By default this property is True.
Declaration
public bool IsTextModeEnabled { get; set; }
Property Value
System.
|
Items
Gets the collection of Rad
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
LeftElementsStack
Returns the panel that contain the elements on the left.
Declaration
public StackLayoutPanel LeftElementsStack { get; }
Property Value
MainStack
Returns the Stack
Declaration
public StackLayoutPanel MainStack { get; }
Property Value
Nodes
Gets the Rad
Declaration
public RadTreeNodeCollection Nodes { get; }
Property Value
Rad The nodes. |
ParentMember
Gets or sets a property name which will be used to define a relation of the data items.
Note that this property is ignored when Default
Declaration
public virtual string ParentMember { get; set; }
Property Value
System.
|
ParseStringComparison
Determines how node names will be compared during when Parse(String) method is called.
Declaration
public StringComparison ParseStringComparison { get; set; }
Property Value
System.
|
Path
Get or sets the path to a Rad
Declaration
public string Path { get; set; }
Property Value
System.
|
PathSeparator
Gets or sets the path separator symbol.
Declaration
public char PathSeparator { get; set; }
Property Value
System.
|
PinnedHeaderItems
Gets the pinned menu items collection in the Header
Declaration
public ObservableCollection<AssociatedMenuItem> PinnedHeaderItems { get; }
Property Value
PinnedItemsPosition
Gets or sets the position of Pinned
Declaration
public MenuItemsPosition PinnedItemsPosition { get; set; }
Property Value
RelationBindings
Contains data binding settings for related data.
Note that this property is ignored when Default
Declaration
public virtual RelationBindingCollection RelationBindings { get; }
Property Value
RightElementsStack
Returns the panel that contain the elements on the right.
Declaration
public StackLayoutPanel RightElementsStack { get; }
Property Value
SelectTreeNodeOnClick
Determines whether a tree node will be selected upon clicking on the action part of the split button element. Default value is [true], if [false] click on the action part will result in opening the pop-up with the menu items.
Declaration
public bool SelectTreeNodeOnClick { get; set; }
Property Value
System.
|
ShowHiddenNodes
Gets or sets a value indicating whether to display the hidden Rad
Declaration
public bool ShowHiddenNodes { get; set; }
Property Value
System.
|
SpacingBetweenItems
Gets or sets the spacing between the items in the breadcrumb.
Declaration
public int SpacingBetweenItems { get; set; }
Property Value
System.
|
TextBoxEditorElement
Returns the Rad
Declaration
public RadTextBoxElement TextBoxEditorElement { get; }
Property Value
ValueMember
Gets or sets a property name which will be used to extract a value from the data items.
Note that this property is ignored when Default
Declaration
public virtual string ValueMember { get; set; }
Property Value
System.
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
BeginEdit()
Declaration
public virtual void BeginEdit()
ClearCollapsedItems()
Declaration
protected virtual void ClearCollapsedItems()
ClearRootItems()
Declaration
protected virtual void ClearRootItems()
CreateAutoCompleteSuggestHelper()
Declaration
protected virtual BreadCrumbAutoCompleteSuggestHelper CreateAutoCompleteSuggestHelper()
Returns
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateDefaultTreeViewElement()
Declaration
protected virtual RadTreeViewElement CreateDefaultTreeViewElement()
Returns
CreateHeaderDropDownButtonElement()
Declaration
protected virtual BreadCrumbDropDownButtonElement CreateHeaderDropDownButtonElement()
Returns
CreateHistoryDropDownButtonElement()
Declaration
protected virtual BreadCrumbDropDownButtonElement CreateHistoryDropDownButtonElement()
Returns
CreateImageElement()
CreateLeftElementsStack()
CreateMainElementsStack()
CreateRightElementsStack()
CreateSeparatorItem()
Declaration
protected virtual RadMenuSeparatorItem CreateSeparatorItem()
Returns
CreateSplitButtonElement()
Declaration
protected virtual RadSplitButtonElement CreateSplitButtonElement()
Returns
CreateTextBoxElement()
EndEdit(Boolean)
Declaration
public virtual void EndEdit(bool submit)
Parameters
System.
|
FindNodeFromToken(String, RadTreeNode)
c Finds the node by given text(token) and a the parent node in whose child nodes we need to search for the node. If parentNode is null search starts from the top most level of nodes.
Declaration
protected virtual RadTreeNode FindNodeFromToken(string token, RadTreeNode parentNode)
Parameters
System.
|
Rad
|
Returns
GetItemText(RadSplitButtonElement)
Declaration
protected virtual string GetItemText(RadSplitButtonElement splitButton)
Parameters
Rad
|
Returns
System.
|
GetNodePath(RadTreeNode)
Declaration
public virtual string GetNodePath(RadTreeNode node)
Parameters
Rad
|
Returns
System.
|
GetNodesCount(RadTreeNodeCollection)
Declaration
public int GetNodesCount(RadTreeNodeCollection nodes)
Parameters
Rad
|
Returns
System.
|
GetNodeText(RadTreeNode)
Declaration
protected virtual string GetNodeText(RadTreeNode node)
Parameters
Rad
|
Returns
System.
|
GetPathFromItems()
Declaration
public virtual string GetPathFromItems()
Returns
System.
|
GetRootNodes()
Declaration
protected virtual IList<RadTreeNode> GetRootNodes()
Returns
System.
|
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
IsHeaderButtonPermanentlyVisible()
Declaration
protected virtual bool IsHeaderButtonPermanentlyVisible()
Returns
System.
|
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnAutoCompleteItemsCreated(Object, AutoCompleteItemsCreatedEventArgs)
Fires the AutoCompleteItemsCreated event.
Declaration
protected virtual void OnAutoCompleteItemsCreated(object sender, AutoCompleteItemsCreatedEventArgs e)
Parameters
System. The sender. |
Auto The Auto |
OnAutoCompleteItemsCreating(Object, AutoCompleteItemsCreatingEventArgs)
Fires the AutoCompleteItemsCreating event.
Declaration
protected virtual void OnAutoCompleteItemsCreating(object sender, AutoCompleteItemsCreatingEventArgs e)
Parameters
System. The sender. |
Auto The Auto |
OnCollapsedItemCreated(Object, AssociatedMenuItemEventArgs)
Fires the CollapsedItemCreated event.
Declaration
protected virtual void OnCollapsedItemCreated(object sender, AssociatedMenuItemEventArgs e)
Parameters
System. The sender. |
Associated The Associated |
OnCollapsedItemsCreated(Object, AssociatedMenuItemCollectionEventArgs)
Fires the CollapsedItemsCreated event.
Declaration
protected virtual void OnCollapsedItemsCreated(object sender, AssociatedMenuItemCollectionEventArgs e)
Parameters
System. The sender. |
Associated The Associated |
OnHistoryItemCreated(Object, AssociatedMenuItemEventArgs)
Fires the HistoryItemCreated event.
Setting the Cancel property of Associated
Declaration
protected virtual void OnHistoryItemCreated(object sender, AssociatedMenuItemEventArgs e)
Parameters
System. The sender. |
Associated The Associated |
OnKeyUp(KeyEventArgs)
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.
|
Overrides
OnPathParsed(Object, PathParsedEventArgs)
Fires the PathParsed event.
Declaration
protected virtual void OnPathParsed(object sender, PathParsedEventArgs e)
Parameters
System. The sender. |
Path The Path |
OnPathParsing(Object, PathParsingEventArgs)
Fires the PathParsing event.
Declaration
protected virtual void OnPathParsing(object sender, PathParsingEventArgs e)
Parameters
System. The sender. |
Path The Path |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnRootNodesRequested(Object, TreeNodeCollectionEventArgs)
Fires the RootNodesRequested event.
Declaration
protected virtual void OnRootNodesRequested(object sender, TreeNodeCollectionEventArgs e)
Parameters
System. The sender. |
Tree The Tree |
OnSplitButtonCreated(Object, SplitButtonCreatedEventArgs)
Fires the SplitButtonCreated event.
Declaration
protected virtual void OnSplitButtonCreated(object sender, SplitButtonCreatedEventArgs e)
Parameters
System. The sender. |
Split The Split |
OnSplitButtonCreating(Object, SplitButtonCreatingEventArgs)
Fires the SplitButtonCreating event.
Declaration
protected virtual void OnSplitButtonCreating(object sender, SplitButtonCreatingEventArgs e)
Parameters
System. The sender. |
Split The Split |
Parse(String)
Navigates to a RadTreeNode and selects it by given text(path). Different elements in the node hierarchy must be separated by the Path
Declaration
public virtual bool Parse(string path)
Parameters
System. The path to navigate to. |
Returns
System. Returns [true] if the whole path is valid, [False] if only part of the path(sequence of text elements separated by the Path |
ParseCore(String, out Boolean)
Retrieves a node by given path.
Declaration
public virtual RadTreeNode ParseCore(string path, out bool isWholePathValid)
Parameters
System. The path to navigate to. |
System. Returns [true] if the whole path is valid, [False] if only part of the path(sequence of text elements separated by the Path |
Returns
Rad The last valid RadTreeNode selected from the given path. |
ShouldArrangeChild(RadElement)
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
Rad
|
Returns
System.
|
Overrides
ShouldMeasureChild(RadElement)
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
Rad
|
Returns
System.
|
Overrides
UpdateBreadCrumb(RadTreeNode)
UpdateHeaderButtonItems()
Declaration
protected virtual void UpdateHeaderButtonItems()
UpdateHistory(RadTreeNode)
Events
AutoCompleteItemsCreated
Occurs when auto complete items are created. In this event handler the user can modify auto complete item properties and/or modify the collection(add, remove, move or replace items).
Declaration
public event AutoCompleteItemsCreatedEventHandler AutoCompleteItemsCreated
Event Type
AutoCompleteItemsCreating
In this event handler the user can change the text used by the internal logic to generate the auto-complete items. Suitable for cases when you have shortcuts.
Declaration
public event AutoCompleteItemsCreatingEventHandler AutoCompleteItemsCreating
Event Type
CollapsedItemCreated
Occurs when there is not enough space to fit all items. For each collapsed item an Associated
Declaration
public event AssociatedMenuItemEventHandler CollapsedItemCreated
Event Type
CollapsedItemsCreated
Occurs when there is not enough space to fit all items and all collapsed items have their corresponding menu items created. In this event handler the user can add, remove, reorder the items in that will appear as collapsed.
Declaration
public event AssociatedMenuItemCollectionEventHandler CollapsedItemsCreated
Event Type
HistoryItemCreated
Occurs when the user navigates to a new Path. In this event handler the user can modify the Associated
Declaration
public event AssociatedMenuItemEventHandler HistoryItemCreated
Event Type
PathParsed
Occurs when a path has been evaluated and a RadTreeNode is about to be selected in the BreadCrumb. In this event handler the user can change selected RadTreeNode. Note that if parsed path is not valid selected node will be null.
Declaration
public event PathParsedEventHandler PathParsed
Event Type
PathParsing
Occurs when a path is about to be parsed. In this event handler the user can modify the path(for example if key/shortcut words are used), or cancel the parse operation.
Declaration
public event PathParsingEventHandler PathParsing
Event Type
RootNodesRequested
Occurs when the root nodes of the associated or internal tree view are requested during the Parse operation. In this event handler the user can modify the default root nodes(add, remove, replace).
Declaration
public event TreeNodeCollectionEventHandler RootNodesRequested
Event Type
SplitButtonCreated
Occurs a SplitButtonElement is created, its properties . In this event handler the users can set button properties, modify item properties or modify the collection(add, remove, replace items).
Declaration
public event SplitButtonCreatedEventHandler SplitButtonCreated
Event Type
SplitButtonCreating
Occurs when a Rad
Declaration
public event SplitButtonCreatingEventHandler SplitButtonCreating