Class GridNumericCellRenderer
This GridCellNumericRenderer class render the the display element as the textblock and render the edit element as the SfNumericTextBox.
Inheritance
System.Object
GridNumericCellRenderer
Inherited Members
Namespace: Syncfusion.UI.Xaml.CellGrid.GridCellRenderer
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class GridNumericCellRenderer : GridVirtualizingCellRenderer<TextBlock, DoubleTextBox>, IGridCellRenderer, IDisposable
Constructors
GridNumericCellRenderer()
Declaration
public GridNumericCellRenderer()
Methods
GetControlValue()
Returns the controlvalue of the current render element(SfNumericTextBox).
Declaration
public override object GetControlValue()
Returns
Type |
---|
System.Object |
Overrides
GetFormattedText(GridStyleInfo)
Declaration
public override string GetFormattedText(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style |
Returns
Type |
---|
System.String |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.GetFormattedText(Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo)
OnEditElementLoaded(Object, RoutedEventArgs)
Declaration
protected override void OnEditElementLoaded(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | |
System.Windows.RoutedEventArgs | e |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnEditElementLoaded(System.Object, System.Windows.RoutedEventArgs)
OnInitializeDisplayElement(RowColumnIndex, TextBlock, GridStyleInfo, String)
Initialize the properties of display element based on styles.
Declaration
protected override void OnInitializeDisplayElement(RowColumnIndex rowColumnIndex, TextBlock uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | row and column index of cell |
System.Windows.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, System.Windows.Controls.TextBlock, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnInitializeEditElement(RowColumnIndex, DoubleTextBox, GridStyleInfo, String)
Initialize the proerties of edit element (NumericTextBox) based on the styles.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, DoubleTextBox uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | row and column index of the cell |
DoubleTextBox | uiElement | edit uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnInitializeEditElement(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Syncfusion.Windows.Shared.DoubleTextBox, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnUnwireEditUIElement(DoubleTextBox)
Declaration
protected override void OnUnwireEditUIElement(DoubleTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
DoubleTextBox | uiElement |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnUnwireEditUIElement(Syncfusion.Windows.Shared.DoubleTextBox)
OnUpdateCellStyle(RowColumnIndex, TextBlock, GridStyleInfo, String)
Update the display element styles while scrolling the grid.
Declaration
protected override void OnUpdateCellStyle(RowColumnIndex cellRowColumnIndex, TextBlock uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
System.Windows.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnUpdateCellStyle(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, System.Windows.Controls.TextBlock, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnUpdateEditCellStyle(RowColumnIndex, DoubleTextBox, GridStyleInfo, String)
Update the edit element while scrolling the grid.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, DoubleTextBox uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
DoubleTextBox | uiElement | edit uielement. |
GridStyleInfo | style | grid style information. |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnUpdateEditCellStyle(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Syncfusion.Windows.Shared.DoubleTextBox, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnWireEditUIElement(DoubleTextBox)
Declaration
protected override void OnWireEditUIElement(DoubleTextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
DoubleTextBox | uiElement |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRendererBase<System.Windows.Controls.TextBlock, Syncfusion.Windows.Shared.DoubleTextBox>.OnWireEditUIElement(Syncfusion.Windows.Shared.DoubleTextBox)
SetControlValue(Object)
Returns the true if the control value is set else false.
Declaration
public override bool SetControlValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | new control value |
Returns
Type |
---|
System.Boolean |
Overrides
ShouldGridTryToHandleKeyDown(KeyEventArgs)
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
Returns
Type |
---|
System.Boolean |
Overrides
Implements
System.IDisposable