Class GridUpDownCellRenderer
This GridCellUpDownRenderer class render the the display element as the textblock and render the edit element as the SfUpDownCellRenderer.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.CellGrid.GridCellRenderer
Assembly: Syncfusion.SfCellGrid.UWP.dll
Syntax
public class GridUpDownCellRenderer : GridVirtualizingCellRenderer<TextBlock, SfNumericUpDown>, IGridCellRenderer, IDisposable
Constructors
GridUpDownCellRenderer()
Declaration
public GridUpDownCellRenderer()
Methods
GetControlValue()
Returns the controlvalue of the current render- SfNumericUpDown.
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
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
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
OnInitializeEditElement(RowColumnIndex, SfNumericUpDown, GridStyleInfo, String)
Initialize the proerties of edit element (SfNumricUpDown) based on the styles.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, SfNumericUpDown uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | row and column index of the cell |
SfNumericUpDown | uiElement | edit uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
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 | grid style information |
Overrides
OnUpdateEditCellStyle(RowColumnIndex, SfNumericUpDown, GridStyleInfo, String)
Update the edit element while scrolling the grid.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, SfNumericUpDown uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
SfNumericUpDown | uiElement | edit uielement. |
GridStyleInfo | style | grid style information. |
System.String | text |
Overrides
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 |