Class GridCellDropDownCellRenderer<T>
Renders drop-down list control in a grid cell.
Inheritance
System.Object
GridCellDropDownCellRenderer<T>
Implements
System.IDisposable
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellDropDownCellRenderer<T> : GridVirtualizingCellRenderer<T>, IGridCellRenderer, ICellRenderer, IHitTestSelectCells, IStyleChanged, IDisposable, IAllowKeepAliveOnlyCurrentCell where T : GridCellDropDownControlBase, new()
Type Parameters
Constructors
GridCellDropDownCellRenderer()
Declaration
public GridCellDropDownCellRenderer()
Properties
AlreadyTextChanged
Gets or sets a value indicating whether the text is already changed.
Declaration
protected bool AlreadyTextChanged { get; set; }
Property Value
Type |
Description |
System.Boolean |
true if [already text changed]; otherwise, false .
|
CanProcessKey
Use this variable to check if the key can be processed
Declaration
protected bool CanProcessKey { get; set; }
Property Value
GridListModel
Gets the GridListModel, i.e. the model of the drop-down control.
Declaration
public IGridListModel GridListModel { get; }
Property Value
SuspendEvents
Declaration
protected bool SuspendEvents { get; set; }
Property Value
Methods
ArrangeUIElement(ArrangeCellArgs, T, GridRenderStyleInfo)
Declaration
protected override void ArrangeUIElement(ArrangeCellArgs aca, T uiElement, GridRenderStyleInfo style)
Parameters
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRendererBase<T>.ArrangeUIElement(Syncfusion.Windows.Controls.Cells.ArrangeCellArgs, T, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
ClearSelectedIndex()
Declaration
protected virtual void ClearSelectedIndex()
FindItem(String, Boolean, Int32, Boolean, out String)
Finds text in the list box.
Declaration
public virtual int FindItem(string prefix, bool selectItem, int start, bool ignoreCase, out string filteredText)
Parameters
Type |
Name |
Description |
System.String |
prefix |
The text (or prefix) to find.
|
System.Boolean |
selectItem |
True if you want to select the text in the list box.
|
System.Int32 |
start |
The first index to start searching.
|
System.Boolean |
ignoreCase |
True if case can be ignored; False if case sensitive.
|
System.String |
filteredText |
The filtered text.
|
Returns
Type |
Description |
System.Int32 |
The index of the entry that starts with the text; -1 if
no entry could be found.
|
GetControlTextFromEditorCore(T)
Declaration
protected override string GetControlTextFromEditorCore(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
Returns
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<T>.GetControlTextFromEditorCore(T)
GetDropDownVisualStyle(T, GridStyleInfo)
Declaration
public T GetDropDownVisualStyle(T dropdown, GridStyleInfo style)
Parameters
Returns
Declaration
protected void GridControl_PreviewKeyDown(object sender, KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Input.KeyEventArgs |
e |
|
OnActivated()
Declaration
protected override void OnActivated()
Overrides
OnConfirmChangesFailed()
Declaration
protected override void OnConfirmChangesFailed()
Overrides
OnDeactivated()
Declaration
protected override void OnDeactivated()
Overrides
OnEditingComplete()
Declaration
protected override void OnEditingComplete()
Overrides
OnEnteredEditMode()
Declaration
protected override void OnEnteredEditMode()
Overrides
OnGridPreviewTextInput(TextCompositionEventArgs)
This method only for Exclusive DropDown. If we type char means take the item from the List box
Declaration
protected override void OnGridPreviewTextInput(TextCompositionEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.TextCompositionEventArgs |
e |
|
Overrides
OnInitialize()
Declaration
protected override void OnInitialize()
Overrides
OnInitializeContent(T, GridRenderStyleInfo)
Initializes the content of the drop-down list cell
using the information from the cell style (value, text,
behavior etc.).
Declaration
public override void OnInitializeContent(T dropDownControl, GridRenderStyleInfo style)
Parameters
Type |
Name |
Description |
T |
dropDownControl |
The drop-down list control.
|
GridRenderStyleInfo |
style |
The cell style info.
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<T>.OnInitializeContent(T, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnIsDropDownOpenChanged(Object, EventArgs)
Declaration
protected virtual void OnIsDropDownOpenChanged(object sender, EventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.EventArgs |
e |
|
OnRender(DrawingContext, RenderCellArgs, GridRenderStyleInfo)
Declaration
protected override void OnRender(DrawingContext dc, RenderCellArgs rca, GridRenderStyleInfo style)
Parameters
Overrides
Syncfusion.Windows.Controls.Cells.CellRendererBase<Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo>.OnRender(System.Windows.Media.DrawingContext, Syncfusion.Windows.Controls.Cells.RenderCellArgs, Syncfusion.Windows.Controls.Grid.GridRenderStyleInfo)
OnSetFocus()
Declaration
protected override void OnSetFocus()
Overrides
OnTextBoxPartKeyDown(Object, KeyEventArgs)
Declaration
protected virtual void OnTextBoxPartKeyDown(object sender, KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Input.KeyEventArgs |
e |
|
OnTextBoxPartPreviewKeyDown(Object, KeyEventArgs)
Declaration
protected virtual void OnTextBoxPartPreviewKeyDown(object sender, KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Input.KeyEventArgs |
e |
|
OnTextBoxPartTextChanged(Object, TextChangedEventArgs)
Declaration
protected virtual void OnTextBoxPartTextChanged(object sender, TextChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.Windows.Controls.TextChangedEventArgs |
e |
|
OnUnwireUIElement(T)
Declaration
protected override void OnUnwireUIElement(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<T>.OnUnwireUIElement(T)
OnWireUIElement(T)
Declaration
protected override void OnWireUIElement(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
Overrides
Syncfusion.Windows.Controls.Grid.GridVirtualizingCellRenderer<T>.OnWireUIElement(T)
Raises GridCellClick event.
Declaration
public override void RaiseGridCellClick(int rowIndex, int colIndex, MouseControllerEventArgs e)
Parameters
Overrides
RaiseSelectedItemChangedEvent(RowColumnIndex, Object)
Declaration
protected virtual void RaiseSelectedItemChangedEvent(RowColumnIndex cellRowColumnIndex, object item)
Parameters
Type |
Name |
Description |
RowColumnIndex |
cellRowColumnIndex |
|
System.Object |
item |
|
SetSelectedIndex(Int32)
Declaration
protected virtual void SetSelectedIndex(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Declaration
protected override bool ShouldGridTryToHandlePreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Returns
Overrides
UnwireTemplateParts(T)
Declaration
protected virtual void UnwireTemplateParts(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
WireTemplateParts(T)
Declaration
protected virtual void WireTemplateParts(T uiElement)
Parameters
Type |
Name |
Description |
T |
uiElement |
|
Implements
System.IDisposable