menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeGridCellComboBoxRenderer - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeGridCellComboBoxRenderer

    Represents the class that loads the as editor for TreeGridComboBoxColumn.

    Inheritance
    System.Object
    TreeGridCellRendererBase
    TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>
    TreeGridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>
    TreeGridCellComboBoxRenderer
    Implements
    ITreeGridCellRenderer
    System.IDisposable
    Inherited Members
    TreeGridCellRendererBase.Arrange(RowColumnIndex, FrameworkElement, Rect)
    TreeGridCellRendererBase.BeginEdit(RowColumnIndex, FrameworkElement, TreeGridColumn, Object)
    TreeGridCellRendererBase.BindingExpression
    TreeGridCellRendererBase.CanUpdateBinding(TreeGridColumn)
    TreeGridCellRendererBase.CanValidate()
    TreeGridCellRendererBase.ClearRecycleBin()
    TreeGridCellRendererBase.CurrentCellElement
    TreeGridCellRendererBase.CurrentCellIndex
    TreeGridCellRendererBase.CurrentCellRendererElement
    TreeGridCellRendererBase.Dispose()
    TreeGridCellRendererBase.Dispose(Boolean)
    TreeGridCellRendererBase.HasCurrentCellState
    TreeGridCellRendererBase.IsDropDownable
    TreeGridCellRendererBase.IsEditable
    TreeGridCellRendererBase.IsFocusable
    TreeGridCellRendererBase.IsFocused
    TreeGridCellRendererBase.IsInEditing
    TreeGridCellRendererBase.ITreeGridCellRenderer.ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
    TreeGridCellRendererBase.ITreeGridCellRenderer.UpdateBindingInfo(TreeDataColumnBase, Object, Boolean)
    TreeGridCellRendererBase.Measure(RowColumnIndex, FrameworkElement, Size)
    TreeGridCellRendererBase.OnArrange(RowColumnIndex, FrameworkElement, Rect)
    TreeGridCellRendererBase.OnMeasure(RowColumnIndex, FrameworkElement, Size)
    TreeGridCellRendererBase.OnPrepareUIElements(TreeDataColumnBase, Object, Boolean)
    TreeGridCellRendererBase.OnPreviewTextInput(KeyRoutedEventArgs)
    TreeGridCellRendererBase.OnUnloadUIElements(TreeDataColumnBase)
    TreeGridCellRendererBase.OnUpdateBindingInfo(TreeDataColumnBase, Object, Boolean)
    TreeGridCellRendererBase.OnUpdateStyleInfo(TreeDataColumn)
    TreeGridCellRendererBase.PrepareUIElements(TreeDataColumnBase, Object, Boolean)
    TreeGridCellRendererBase.PreviewInputText
    TreeGridCellRendererBase.PreviewTextInput(KeyRoutedEventArgs)
    TreeGridCellRendererBase.RaiseCurrentCellValidatedEvent(SfTreeGrid, TreeGridColumn, Object, Object, Object, TreeNode)
    TreeGridCellRendererBase.RaiseCurrentCellValidatingEvent(SfTreeGrid, TreeGridColumn, Object, Object, Object, Object, TreeNode)
    TreeGridCellRendererBase.RaiseCurrentCellValueChangedEvent(SfTreeGrid, TreeDataColumnBase)
    TreeGridCellRendererBase.ResetCurrentCellState()
    TreeGridCellRendererBase.SetCurrentCellState(RowColumnIndex, FrameworkElement, Boolean, Boolean, TreeGridColumn, TreeDataColumnBase)
    TreeGridCellRendererBase.SetFocus(Boolean)
    TreeGridCellRendererBase.SetFocus(FrameworkElement, Boolean)
    TreeGridCellRendererBase.SupportsRenderOptimization
    TreeGridCellRendererBase.TreeGrid
    TreeGridCellRendererBase.UnloadUIElements(TreeDataColumnBase)
    TreeGridCellRendererBase.UpdateBindingInfo(TreeDataColumnBase, Object, Boolean)
    TreeGridCellRendererBase.UpdateCellStyle(TreeDataColumn)
    TreeGridCellRendererBase.UpdateCurrentCellState(FrameworkElement, Boolean)
    TreeGridCellRendererBase.UpdateSource(FrameworkElement)
    TreeGridCellRendererBase.UpdateToolTip(TreeDataColumnBase)
    TreeGridCellRendererBase.UseOnlyRendererElement
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.CurrentRendererValueChanged()
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.EditorType
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeDisplayElement(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeEditElement(TreeDataColumnBase, ComboBox, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnInitializeTemplateElement(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateDisplayBinding(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateEditBinding(TreeDataColumnBase, ComboBox, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.OnUpdateTemplateBinding(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)
    TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>.TextAlignmentToHorizontalAlignment(TextAlignment)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.AllowRecycle
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.BeginEdit(RowColumnIndex, FrameworkElement, TreeGridColumn, Object)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.ClearRecycleBin()
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.DisplayRecycleBin
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.Dispose(Boolean)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.EditRecycleBin
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.EndEdit(TreeDataColumnBase, Object, Boolean)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeCellStyle(TreeDataColumnBase, Object)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeDisplayElement(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeEditElement(TreeDataColumnBase, ComboBox, Object)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.InitializeTemplateElement(TreeDataColumnBase, ContentControl, Object)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnArrange(RowColumnIndex, FrameworkElement, Rect)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnCreateDisplayUIElement()
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnCreateEditUIElement()
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementLoaded(Object, RoutedEventArgs)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementLostFocus(Object, RoutedEventArgs)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditElementUnloaded(Object, RoutedEventArgs)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEditingComplete(TreeDataColumnBase, FrameworkElement)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnEnteredEditMode(TreeDataColumnBase, FrameworkElement)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnMeasure(RowColumnIndex, FrameworkElement, Size)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnPrepareUIElements(TreeDataColumnBase, Object, Boolean)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnloadUIElements(TreeDataColumnBase)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireDisplayUIElement(ContentControl)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireEditUIElement(ComboBox)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUnwireTemplateUIElement(ContentControl)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUpdateBindingInfo(TreeDataColumnBase, Object, Boolean)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnUpdateStyleInfo(TreeDataColumn)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireDisplayUIElement(ContentControl)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireEditUIElement(ComboBox)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.OnWireTemplateUIElement(ContentControl)
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.TemplateRecycleBin
    TreeGridVirtualizingCellRendererBase<ContentControl, ComboBox>.UpdateToolTip(TreeDataColumnBase)
    Namespace: Syncfusion.UI.Xaml.TreeGrid.Cells
    Assembly: Syncfusion.SfGrid.UWP.dll
    Syntax
    public class TreeGridCellComboBoxRenderer : TreeGridVirtualizingCellRenderer<ContentControl, ComboBox>, ITreeGridCellRenderer, IDisposable
    Examples
    this.sfTreeGrid.CellRenderers.Remove("ComboBox");
    this.sfTreeGrid.CellRenderers.Add("ComboBox", new TreeGridCellComboBoxRendererExt());
    public class TreeGridCellComboBoxRendererExt : TreeGridCellComboBoxRenderer
    {
       public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
       {
           base.OnInitializeDisplayElement(dataColumn, uiElement, dataContext);
           uiElement.Foreground = new SolidColorBrush(Colors.DarkOrange);
       }
    }

    Constructors

    TreeGridCellComboBoxRenderer()

    Initializes a new instance of TreeGridCellComboBoxRenderer class.

    Declaration
    public TreeGridCellComboBoxRenderer()

    Fields

    lastKeyPressed

    Declaration
    public Nullable<VirtualKey> lastKeyPressed
    Field Value
    Type
    System.Nullable<Windows.System.VirtualKey>

    Methods

    EndEdit(TreeDataColumnBase, Object, Boolean)

    Ends the edit occuring on the cell.

    Declaration
    public override bool EndEdit(TreeDataColumnBase dc, object record, bool canResetBinding = false)
    Parameters
    Type Name Description
    TreeDataColumnBase dc

    Specifies the TreeDataColumnBase.

    System.Object record

    Specifies the record.

    System.Boolean canResetBinding

    Indicates whether binding can be reset or not.

    Returns
    Type Description
    System.Boolean

    True if the edit ends on the cell; otherwise false.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.EndEdit(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, System.Object, System.Boolean)

    GetControlValue()

    Gets the control value of the cell.

    Declaration
    public override object GetControlValue()
    Returns
    Type Description
    System.Object

    Returns the control value as null by default .

    Overrides
    TreeGridCellRendererBase.GetControlValue()

    OnCreateDisplayUIElement()

    Creates a new UIElement for the display mode of cell.

    Declaration
    protected override ContentControl OnCreateDisplayUIElement()
    Returns
    Type Description
    Windows.UI.Xaml.Controls.ContentControl

    The new UIElement for the display mode of cell.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnCreateDisplayUIElement()

    OnCreateEditUIElement()

    Creates a new UIElement for the edit mode of cell.

    Declaration
    protected override ComboBox OnCreateEditUIElement()
    Returns
    Type Description
    Windows.UI.Xaml.Controls.ComboBox

    Returns the new UIElement for edit mode of cell.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnCreateEditUIElement()

    OnEditElementLoaded(Object, RoutedEventArgs)

    Invoked when the edit element(ComboBox) is loaded on the cell in column

    Declaration
    protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The sender that contains the corresponding edit UIElement.

    Windows.UI.Xaml.RoutedEventArgs e

    The Windows.UI.Xaml.RoutedEventArgs instance containing the event data.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnEditElementLoaded(System.Object, Windows.UI.Xaml.RoutedEventArgs)

    OnEnteredEditMode(TreeDataColumnBase, FrameworkElement)

    Invoked when the cell is being entered the edit mode.

    Declaration
    protected override void OnEnteredEditMode(TreeDataColumnBase dataColumn, FrameworkElement currentRendererElement)
    Parameters
    Type Name Description
    TreeDataColumnBase dataColumn

    The corresponding data column.

    Windows.UI.Xaml.FrameworkElement currentRendererElement

    The current renderer element.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnEnteredEditMode(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, Windows.UI.Xaml.FrameworkElement)

    OnInitializeDisplayElement(TreeDataColumnBase, ContentControl, Object)

    Method which initialize the display element of the column.

    Declaration
    public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, ContentControl uiElement, object dataContext)
    Parameters
    Type Name Description
    TreeDataColumnBase dataColumn

    Specifies the TreeDataColumnBase.

    Windows.UI.Xaml.Controls.ContentControl uiElement

    Specifies the corresponding renderer element.

    System.Object dataContext

    Specifies the data context.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, Windows.UI.Xaml.Controls.ContentControl, System.Object)

    OnInitializeEditElement(TreeDataColumnBase, ComboBox, Object)

    Invoked when the edit element is initialized on the cell.

    Declaration
    public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, ComboBox uiElement, object dataContext)
    Parameters
    Type Name Description
    TreeDataColumnBase dataColumn

    Specified the TreeDataColumnBase.

    Windows.UI.Xaml.Controls.ComboBox uiElement

    Specifies the corresponding renderer element.

    System.Object dataContext

    Specifies the data context of the cell.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnInitializeEditElement(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, Windows.UI.Xaml.Controls.ComboBox, System.Object)

    OnUnwireEditUIElement(ComboBox)

    Unwires the events associated with edit UIElement

    Declaration
    protected override void OnUnwireEditUIElement(ComboBox uiElement)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Controls.ComboBox uiElement

    The corresponding edit UIElement to unwire its events.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.OnUnwireEditUIElement(Windows.UI.Xaml.Controls.ComboBox)

    SetControlValue(Object)

    Sets the control value of the cell.

    Declaration
    public override void SetControlValue(object value)
    Parameters
    Type Name Description
    System.Object value

    Specifies the value to set the control value of the cell.

    Overrides
    TreeGridCellRendererBase.SetControlValue(Object)

    ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs)

    Handles the key interaction with editor of corresponding column.

    Declaration
    protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.KeyRoutedEventArgs e

    The Windows.UI.Xaml.Input.KeyRoutedEventArgs instance containing the event data.

    Returns
    Type Description
    System.Boolean

    Returns true if the parent grid should be allowed to handle keys; otherwise false.

    Overrides
    Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.ContentControl, Windows.UI.Xaml.Controls.ComboBox>.ShouldGridTryToHandleKeyDown(Windows.UI.Xaml.Input.KeyRoutedEventArgs)

    Implements

    ITreeGridCellRenderer
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved