Class TreeGridCellPercentageRenderer
Renderer for TreeGridPercentColumn which is used to display the percent value.
Inheritance
System.Object
TreeGridCellPercentageRenderer
Inherited Members
Namespace: Syncfusion.UI.Xaml.TreeGrid.Cells
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridCellPercentageRenderer : TreeGridVirtualizingCellRenderer<TextBlock, PercentTextBox>, ITreeGridCellRenderer, IDisposable
Constructors
TreeGridCellPercentageRenderer()
Declaration
public TreeGridCellPercentageRenderer()
Methods
EndEdit(TreeDataColumnBase, Object, Boolean)
Declaration
public override bool EndEdit(TreeDataColumnBase dc, object record, bool canResetBinding = false)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dc | |
System.Object | record | |
System.Boolean | canResetBinding |
Returns
Type |
---|
System.Boolean |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.EndEdit(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, System.Object, System.Boolean)
GetControlValue()
Gets the control value.
Declaration
public override object GetControlValue()
Returns
Type |
---|
System.Object |
Overrides
OnEditElementLoaded(Object, RoutedEventArgs)
Invoked when the edit element(PercentTextBox) 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. |
System.Windows.RoutedEventArgs | e | The System.Windows.RoutedEventArgs instance containing the event data. |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.OnEditElementLoaded(System.Object, System.Windows.RoutedEventArgs)
OnEditElementUnloaded(Object, RoutedEventArgs)
Declaration
protected override void OnEditElementUnloaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.Windows.RoutedEventArgs | e |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.OnEditElementUnloaded(System.Object, System.Windows.RoutedEventArgs)
OnInitializeDisplayElement(TreeDataColumnBase, TextBlock, Object)
Called when [initialize display element].
Declaration
public override void OnInitializeDisplayElement(TreeDataColumnBase dataColumn, TextBlock uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | DataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell |
System.Windows.Controls.TextBlock | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, System.Windows.Controls.TextBlock, System.Object)
OnInitializeEditElement(TreeDataColumnBase, PercentTextBox, Object)
Called when [initialize edit element].
Declaration
public override void OnInitializeEditElement(TreeDataColumnBase dataColumn, PercentTextBox uiElement, object dataContext)
Parameters
Type | Name | Description |
---|---|---|
TreeDataColumnBase | dataColumn | DataColumn Which holds TreeGridColumn, RowColumnIndex and GridCell |
PercentTextBox | uiElement | Corresponding Renderer Element |
System.Object | dataContext | The data context. |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.OnInitializeEditElement(Syncfusion.UI.Xaml.TreeGrid.TreeDataColumnBase, Syncfusion.Windows.Shared.PercentTextBox, System.Object)
OnUnwireEditUIElement(PercentTextBox)
Declaration
protected override void OnUnwireEditUIElement(PercentTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
PercentTextBox | uiElement |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.OnUnwireEditUIElement(Syncfusion.Windows.Shared.PercentTextBox)
SetControlValue(Object)
Sets the control value.
Declaration
public override void SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Overrides
ShouldGridTryToHandleKeyDown(KeyEventArgs)
Shoulds the grid try automatic handle key down.
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The System.Windows.Input.KeyEventArgs instance containing the event data. |
Returns
Type |
---|
System.Boolean |
Overrides
Syncfusion.UI.Xaml.TreeGrid.Cells.TreeGridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.PercentTextBox>.ShouldGridTryToHandleKeyDown(System.Windows.Input.KeyEventArgs)
Implements
System.IDisposable