menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridTimeColumn - API Reference

    Show / Hide Table of Contents

    Class TreeGridTimeColumn

    Represents a column that displays the time values in its cell content.

    Inheritance
    System.Object
    ColumnBase<SfGridBase>
    GridColumnBase
    TreeGridColumn
    TreeGridTextColumnBase
    TreeGridTimeColumn
    Implements
    System.IDisposable
    IFilterDefinition
    Inherited Members
    TreeGridTextColumnBase.TextTrimmingProperty
    TreeGridTextColumnBase.TextWrappingProperty
    TreeGridTextColumnBase.TextTrimming
    TreeGridTextColumnBase.TextWrapping
    TreeGridColumn.FilterPopupStyleProperty
    TreeGridColumn.FilterPopupTemplateProperty
    TreeGridColumn.ColumnWidthModeProperty
    TreeGridColumn.AllowDraggingProperty
    TreeGridColumn.AllowResizingProperty
    TreeGridColumn.AllowFilteringProperty
    TreeGridColumn.ImmediateUpdateColumnFilterProperty
    TreeGridColumn.AllowBlankFiltersProperty
    TreeGridColumn.OnCellTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
    TreeGridColumn.CanAllowSpinOnMouseScroll()
    TreeGridColumn.OnCellTemplateChanged(DependencyPropertyChangedEventArgs)
    TreeGridColumn.SetCellType(String)
    TreeGridColumn.Dispose(Boolean)
    TreeGridColumn.UpdateBindingBasedOnAllowEditing()
    TreeGridColumn.CanFocus()
    TreeGridColumn.CellType
    TreeGridColumn.FilterPopupStyle
    TreeGridColumn.FilterPopupTemplate
    TreeGridColumn.ColumnWidthMode
    TreeGridColumn.AllowDragging
    TreeGridColumn.AllowResizing
    TreeGridColumn.AllowFiltering
    TreeGridColumn.TreeGrid
    TreeGridColumn.FilterPredicates
    TreeGridColumn.FilterBehavior
    TreeGridColumn.ColumnFilter
    TreeGridColumn.ColumnMemberType
    TreeGridColumn.FilteredFrom
    TreeGridColumn.ImmediateUpdateColumnFilter
    TreeGridColumn.AllowBlankFilters
    GridColumnBase.ActualWidthProperty
    GridColumnBase.MappingNameProperty
    GridColumnBase.HeaderTextProperty
    GridColumnBase.AllowEditingProperty
    GridColumnBase.IsReadOnlyProperty
    GridColumnBase.DataValidationModeProperty
    GridColumnBase.UpdateTriggerProperty
    GridColumnBase.PaddingProperty
    GridColumnBase.AllowFocusProperty
    GridColumnBase.HeaderTemplateProperty
    GridColumnBase.CellTemplateProperty
    GridColumnBase.SetCellBoundValueProperty
    GridColumnBase.CellTemplateSelectorProperty
    GridColumnBase.CellStyleProperty
    GridColumnBase.CellStyleSelectorProperty
    GridColumnBase.HeaderStyleProperty
    GridColumnBase.AllowSortingProperty
    GridColumnBase.VerticalAlignmentProperty
    GridColumnBase.TextAlignmentProperty
    GridColumnBase.HorizontalHeaderContentAlignmentProperty
    GridColumnBase.WidthProperty
    GridColumnBase.IsHiddenProperty
    GridColumnBase.MaximumWidthProperty
    GridColumnBase.MinimumWidthProperty
    GridColumnBase.ShowHeaderToolTipProperty
    GridColumnBase.ToolTipTemplateProperty
    GridColumnBase.HeaderToolTipTemplateProperty
    GridColumnBase.ToolTipTemplateSelectorProperty
    GridColumnBase.ShowToolTipProperty
    GridColumnBase.SetCellBoundToolTipProperty
    GridColumnBase.OnUpdateBindingInfo(DependencyObject, DependencyPropertyChangedEventArgs)
    GridColumnBase.SetValueBindingConverter()
    GridColumnBase.CanEditCell()
    GridColumnBase.UpdateBindingForValidation(GridValidationMode)
    GridColumnBase.IsAutoGenerated
    GridColumnBase.IsTemplate
    GridColumnBase.ActualWidth
    GridColumnBase.MappingName
    GridColumnBase.HeaderText
    GridColumnBase.AllowEditing
    GridColumnBase.IsReadOnly
    GridColumnBase.DataValidationMode
    GridColumnBase.UpdateTrigger
    GridColumnBase.Padding
    GridColumnBase.AllowFocus
    GridColumnBase.HeaderTemplate
    GridColumnBase.CellTemplate
    GridColumnBase.SetCellBoundValue
    GridColumnBase.CellTemplateSelector
    GridColumnBase.CellStyle
    GridColumnBase.CellStyleSelector
    GridColumnBase.HeaderStyle
    GridColumnBase.AllowSorting
    GridColumnBase.VerticalAlignment
    GridColumnBase.TextAlignment
    GridColumnBase.HorizontalHeaderContentAlignment
    GridColumnBase.Width
    GridColumnBase.IsHidden
    GridColumnBase.MaximumWidth
    GridColumnBase.MinimumWidth
    GridColumnBase.ValueBinding
    GridColumnBase.DisplayBinding
    GridColumnBase.ShowHeaderToolTip
    GridColumnBase.ToolTipTemplate
    GridColumnBase.HeaderToolTipTemplate
    GridColumnBase.ToolTipTemplateSelector
    GridColumnBase.ShowToolTip
    GridColumnBase.SetCellBoundToolTip
    ColumnBase<SfGridBase>.Dispose()
    Namespace: Syncfusion.UI.Xaml.TreeGrid
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class TreeGridTimeColumn : TreeGridTextColumnBase, IDisposable, IFilterDefinition
    Examples
      <treeGrid:SfTreeGrid Name="sfTreeGrid"
                                  ChildPropertyName="ReportsTo"
                                  AutoGenerateColumns="False"
                                  ItemsSource="{Binding Employees}"
                                  ParentPropertyName="ID"
                                  SelfRelationRootValue="-1" >
               <treeGrid:SfTreeGrid.Columns>
                   <treeGrid:TreeGridTimeColumn MappingName="OrderTime" HeaderText="Order Time"/>
               </treeGrid:SfTreeGrid.Columns>
           </treeGrid:SfTreeGrid>

    Constructors

    TreeGridTimeColumn()

    Initializes a new instance of TreeGridTimeColumn class.

    Declaration
    public TreeGridTimeColumn()

    Fields

    AllowNullProperty

    Identifies the AllowNull dependency property.

    Declaration
    public static readonly DependencyProperty AllowNullProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the AllowNull dependency property.

    DisplayTimeFormatProperty

    Identifies the DisplayTimeFormat dependency property.

    Declaration
    public static readonly DependencyProperty DisplayTimeFormatProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the DisplayTimeFormat dependency property.

    EditModeProperty

    Identifies DateTimeEditMode dependency property.

    Declaration
    public static readonly DependencyProperty EditModeProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the DateTimeEditMode dependency property.

    MaxTimeProperty

    Identifies the MaxTime dependency property.

    Declaration
    public static readonly DependencyProperty MaxTimeProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the MaxTime dependency property.

    MinTimeProperty

    Identifies the MinTime dependency property.

    Declaration
    public static readonly DependencyProperty MinTimeProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the MinTime dependency property.

    PlaceholderTextProperty

    Identifies the PlaceholderText dependency property.

    Declaration
    public static readonly DependencyProperty PlaceholderTextProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the PlaceholderText dependency property.

    ShowSubmitButtonsProperty

    Identifies ShowSubmitButtons dependency property.

    Declaration
    public static readonly DependencyProperty ShowSubmitButtonsProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty
    Remarks

    The identifier for the ShowSubmitButtons dependency property.

    Properties

    AllowNull

    Gets or sets a value that indicates whether the null values are allowed in TreeGridTimeColumn.

    Declaration
    public bool AllowNull { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the null values are allowed in TreeGridTimeColumn; otherwise, false. The default value is true.

    Examples
    treeGrid.Columns.Add(new TreeGridTimeColumn() { MappingName = "OrderTime" , AllowNull = false });

    DisplayTimeFormat

    Gets or sets a string that specifies how to format the bounded value in TreeGridTimeColumn.

    Declaration
    public string DisplayTimeFormat { get; set; }
    Property Value
    Type Description
    System.String

    A string that specifies how to format the bounded value in TreeGridTimeColumn. The default value is hh:mm tt.

    Examples
    <syncfuion:TreeGridTimeColumn MappingName="OrderTime" DisplayTimeFormat ="HH:mm:ss" />

    EditMode

    Gets or sets a value that specifies the edit mode to validate the input as per TreeGridTimeColumn.DisplayTimeFormat format.

    Declaration
    public DateTimeEditMode EditMode { get; set; }
    Property Value
    Type Description
    DateTimeEditMode

    One of the DateTimeEditMode enumeration that specifies how the input numbers on the editor should be validated as per TreeGridTimeColumn.DisplayTimeFormat property. The default value is Mask.

    Remarks

    Disable editing using DateTimeEditMode.None. Validate input as you type using DateTimeEditMode.Mask. Validate input when pressing enter key or when editor’s focus is lost using DateTimeEditMode.Normal.

    Examples
    <syncfuion:TreeGridTimeColumn MappingName="OrderTime" EditMode ="Normal" />

    MaxTime

    Gets or sets the maximum time that can be selected in TreeGridTimeColumn.

    Declaration
    public DateTimeOffset MaxTime { get; set; }
    Property Value
    Type Description
    System.DateTimeOffset

    The maximum time that can be selected in TreeGridTimeColumn. The default value is 12/31/2021, DateTimeOffset.Now.Hour, DateTimeOffset.Now.Minute, DateTimeOffset.Now.Second, DateTimeOffset.Now.Offset.

    Remarks

    A SfTimePicker control is loaded in the record cells of the TreeGridTimeColumn. It enables you to scroll through a list of times between the MinTime and MaxTime and select one from it.

    Examples
    treeGrid.Columns.Add(new TreeGridTimeColumn() { MappingName = "OrderTime" , MaxTime= new DateTimeOffset(new DateTime(2000, 01, 06,3,45,15)) });
    See Also
    MinTime

    MinTime

    Gets or sets the minimum time that can be selected in TreeGridTimeColumn.

    Declaration
    public DateTimeOffset MinTime { get; set; }
    Property Value
    Type Description
    System.DateTimeOffset

    The minimum time that can be selected in TreeGridTimeColumn. The default value is 1/1/1921, DateTimeOffset.Now.Hour, DateTimeOffset.Now.Minute, DateTimeOffset.Now.Second, DateTimeOffset.Now.Offset.

    Remarks

    A SfTimePicker control is loaded in the record cells of the TreeGridTimeColumn. It enables you to scroll through a list of times between the MinTime and MaxTime and select one from it.

    Examples
    treeGrid.Columns.Add(new TreeGridTimeColumn() { MappingName = "OrderTime" , MinTime= new DateTimeOffset(new DateTime(2000, 01, 06,02,45,30)) });
    See Also
    MaxTime

    PlaceholderText

    Gets or sets the text that is displayed in the editor until the SelectedTime is changed by a user action or some other operation.

    Declaration
    public string PlaceholderText { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "Select a time".

    Examples
    <syncfuion:TreeGridTimeColumn MappingName="OrderTime" PlaceholderText ="Time" />

    ShowSubmitButtons

    Gets or sets a value indicating whether to show or hide the accept and decline buttons in editor.

    Declaration
    public bool ShowSubmitButtons { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the submit buttons are visible ; otherwise , false. The default value is true.

    Examples
    treeGrid.Columns.Add(new TreeGridTimeColumn() { MappingName = "OrderTime" , ShowSubmitButtons = false });

    Methods

    SetDisplayBindingConverter()

    Sets the converter for the DisplayBinding of column.

    Declaration
    protected override void SetDisplayBindingConverter()
    Overrides
    TreeGridTextColumnBase.SetDisplayBindingConverter()
    Remarks

    You can override this method to specify the converter for DisplayBinding .

    Implements

    System.IDisposable
    IFilterDefinition
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved