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.UWP.dll
Syntax
public class GridNumericCellRenderer : GridVirtualizingCellRenderer<TextBlock, SfNumericTextBox>, 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<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.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 | |
Windows.UI.Xaml.RoutedEventArgs | e |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRendererBase<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.OnEditElementLoaded(System.Object, Windows.UI.Xaml.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 |
Windows.UI.Xaml.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.OnInitializeDisplayElement(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnInitializeEditElement(RowColumnIndex, SfNumericTextBox, GridStyleInfo, String)
Initialize the proerties of edit element (NumericTextBox) based on the styles.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, SfNumericTextBox uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | row and column index of the cell |
SfNumericTextBox | uiElement | edit uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.OnInitializeEditElement(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
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 | |
Windows.UI.Xaml.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.OnUpdateCellStyle(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
OnUpdateEditCellStyle(RowColumnIndex, SfNumericTextBox, GridStyleInfo, String)
Update the edit element while scrolling the grid.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, SfNumericTextBox uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
SfNumericTextBox | uiElement | edit uielement. |
GridStyleInfo | style | grid style information. |
System.String | text |
Overrides
Syncfusion.UI.Xaml.CellGrid.GridCellRenderer.GridVirtualizingCellRenderer<Windows.UI.Xaml.Controls.TextBlock, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox>.OnUpdateEditCellStyle(Syncfusion.UI.Xaml.Grid.ScrollAxis.RowColumnIndex, Syncfusion.UI.Xaml.Controls.Input.SfNumericTextBox, Syncfusion.UI.Xaml.CellGrid.Styles.GridStyleInfo, System.String)
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(KeyRoutedEventArgs)
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e |
Returns
Type |
---|
System.Boolean |
Overrides
Implements
System.IDisposable