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.WPF.dll
Syntax
public class GridUpDownCellRenderer : GridVirtualizingCellRenderer<TextBlock, UpDown>, 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 | |
System.Windows.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 |
System.Windows.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
OnInitializeEditElement(RowColumnIndex, UpDown, GridStyleInfo, String)
Initialize the proerties of edit element (SfNumricUpDown) based on the styles.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, UpDown uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | row and column index of the cell |
UpDown | uiElement | edit uielement |
GridStyleInfo | style | grid style information |
System.String | text |
Overrides
OnUnwireEditUIElement(UpDown)
Declaration
protected override void OnUnwireEditUIElement(UpDown uiElement)
Parameters
Type | Name | Description |
---|---|---|
UpDown | uiElement |
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 | |
System.Windows.Controls.TextBlock | uiElement | display uielement |
GridStyleInfo | style | grid style information |
System.String | text | grid style information |
Overrides
OnUpdateEditCellStyle(RowColumnIndex, UpDown, GridStyleInfo, String)
Update the edit element while scrolling the grid.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, UpDown uiElement, GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
UpDown | uiElement | edit uielement. |
GridStyleInfo | style | grid style information. |
System.String | text |
Overrides
OnWireEditUIElement(UpDown)
Declaration
protected override void OnWireEditUIElement(UpDown uiElement)
Parameters
Type | Name | Description |
---|---|---|
UpDown | uiElement |
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(KeyEventArgs)
Declaration
protected override bool ShouldGridTryToHandleKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
Returns
Type |
---|
System.Boolean |