Class TemplateGroupsElement
Represents a hierarchy of template group elements that is associated with specified Grid
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class TemplateGroupsElement : GridVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
TemplateGroupsElement(GroupPanelElement, GridViewTemplate)
Initializes a new instance of the TemplateGroupsElement class.
Declaration
public TemplateGroupsElement(GroupPanelElement groupPanelElement, GridViewTemplate template)
Parameters
Group An instance of Group |
Grid An instance of Grid |
Fields
ChildTemplateGroupsHorizontalOffsetProperty
Declaration
public static RadProperty ChildTemplateGroupsHorizontalOffsetProperty
Field Value
ItemsDistanceProperty
LinkOffsetProperty
LinkPositionProperty
LinkWidthProperty
TemplateGroupsBottomDistanceProperty
Properties
ChildTemplateGroupsElements
Gets a read only collection of child elements of type Template
Declaration
public ReadOnlyCollection<TemplateGroupsElement> ChildTemplateGroupsElements { get; }
Property Value
System.
|
ChildTemplateGroupsHorizontalOffset
Sets the vertical offset between two consecutive child TemplateGroupsElements
Declaration
public int ChildTemplateGroupsHorizontalOffset { get; set; }
Property Value
System.
|
GroupElements
Gets a read only collection of child elements of type Group
Declaration
public ReadOnlyCollection<GroupElement> GroupElements { get; }
Property Value
System.
|
GroupPanelElement
Gets the group panel element.
Declaration
public GroupPanelElement GroupPanelElement { get; }
Property Value
Group The group panel element. |
ItemsDistance
Sets the vertical and horizontal distance between two consecutive GroupElements
Declaration
[RadPropertyDefaultValue("ItemsDistance", typeof(RadElement))]
public virtual Size ItemsDistance { get; set; }
Property Value
System.
|
LinkOffset
Sets the group links offset
Declaration
[RadPropertyDefaultValue("LinkOffset", typeof(RadElement))]
public virtual int LinkOffset { get; set; }
Property Value
System.
|
LinkPosition
Sets the group links position
Declaration
[RadPropertyDefaultValue("LinkPosition", typeof(RadElement))]
public virtual TemplateGroupsElement.GroupLinkPosition LinkPosition { get; set; }
Property Value
LinkWidth
Sets the separator's width between two consecutive GridFieldElements
Declaration
[RadPropertyDefaultValue("LinkWidth", typeof(RadElement))]
public virtual int LinkWidth { get; set; }
Property Value
System.
|
TemplateGroupsBottomDistance
Sets the vertical and horizontal distance between two consecutive GroupElements
Declaration
[RadPropertyDefaultValue("TemplateGroupsBottomDistance", typeof(RadElement))]
public virtual int TemplateGroupsBottomDistance { get; set; }
Property Value
System.
|
ViewTemplate
Gets the GridViewTemplate.
Declaration
public GridViewTemplate ViewTemplate { get; }
Property Value
Grid The view template. |
Methods
ArrangeGroupLink(GroupLinkElement, PointF, PointF)
Arranges the group link.
Declaration
protected virtual void ArrangeGroupLink(GroupLinkElement linkElement, PointF beginPoint, PointF endPoint)
Parameters
Group The link element. |
System. The begin point. |
System. The end point. |
ArrangeLeftToRight(SizeF)
Arranges the left to right.
Declaration
protected virtual SizeF ArrangeLeftToRight(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
ArrangeLeftToRightGroupElements(ref PointF, ref Single)
Arranges the left to right group elements.
Declaration
protected virtual void ArrangeLeftToRightGroupElements(ref PointF current, ref float currentBottom)
Parameters
System. The current. |
System. The current bottom. |
ArrangeOverride(SizeF)
Arranges the override.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
Overrides
ArrangeRightToLeft(SizeF)
Arranges the right to left.
Declaration
protected virtual SizeF ArrangeRightToLeft(SizeF finalSize)
Parameters
System. The final size. |
Returns
System.
|
ArrangeRightToLeftGroupElements(ref PointF, ref Single)
Arranges the right to left group elements.
Declaration
protected virtual void ArrangeRightToLeftGroupElements(ref PointF current, ref float currentBottom)
Parameters
System. The current. |
System. The current bottom. |
CalcFinalRectLeftToRightBottomGroupLink(GroupElement, GroupElement, out PointF, out PointF)
Calcs the final rect left to right bottom group link.
Declaration
protected virtual void CalcFinalRectLeftToRightBottomGroupLink(GroupElement fromGroupElement, GroupElement toGroupElement, out PointF beingPoint, out PointF endPoint)
Parameters
Group From group element. |
Group To group element. |
System. The being point. |
System. The end point. |
CalcFinalRectRightToLeftBottomGroupLink(GroupElement, GroupElement, out PointF, out PointF)
Calcs the final rect right to left bottom group link.
Declaration
protected virtual void CalcFinalRectRightToLeftBottomGroupLink(GroupElement fromGroupElement, GroupElement toGroupElement, out PointF beingPoint, out PointF endPoint)
Parameters
Group From group element. |
Group To group element. |
System. The being point. |
System. The end point. |
CanDragOver(ISupportDrag)
Determines whether the specified drag object [can be drag over] this instance.
Declaration
public bool CanDragOver(ISupportDrag dragObject)
Parameters
ISupport The drag object. |
Returns
System.
|
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
MeasureGroupElements(SizeF, ref SizeF)
Measures the group elements.
Declaration
protected virtual void MeasureGroupElements(SizeF availableSize, ref SizeF sizeNeeded)
Parameters
System. Size of the available. |
System. The size needed. |
MeasureOverride(SizeF)
Measures the space required by the Rad
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
MeasureTemplateGroupElements(SizeF, ref SizeF)
Measures the template group elements.
Declaration
protected virtual void MeasureTemplateGroupElements(SizeF availableSize, ref SizeF sizeNeeded)
Parameters
System. Size of the available. |
System. The size needed. |
ProcessDragDrop(Point, ISupportDrag)
Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.
Declaration
protected override void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters
System.
|
ISupport
|
Overrides
ProcessDragDropColumn(Object)
Declaration
protected virtual void ProcessDragDropColumn(object dataContext)
Parameters
System.
|
ProcessDragDropFieldContext(Object)
Declaration
protected virtual void ProcessDragDropFieldContext(object dataContext)
Parameters
System.
|
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
System.
|
ISupport
|
Returns
System.
|
Overrides
UpdateHierarchy()
Recreates the child elements hierarchy depending on the associated Grid
Declaration
public void UpdateHierarchy()