ClassRadMultiColumnComboBoxElement
Represents a multi column combo box element. The RadMultiColumnComboBox class is a simple wrapper for the RadMultiColumnComboBoxElement class. The RadMultiColumnComboBox acts to transfer events to and from its corresponding RadMultiColumnComboBoxElement instance. The RadMultiColumnComboBoxElement which is essentially the RadMultiColumnComboBox control may be nested in other telerik controls. The RadMultiColumnComboBoxElement class implements all logical and UI functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
[ComVisible(false)]
public class RadMultiColumnComboBoxElement : BaseComboBoxElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IInputEditor, IValueEditor, ISupportInitialize, IGridViewEventListener
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementEditorBaseElementPopupEditorBaseElementBaseComboBoxElementRadMultiColumnComboBoxElement
Implements:
Inherited Members
Constructors
RadMultiColumnComboBoxElement()
Declaration
public RadMultiColumnComboBoxElement()
Fields
ReadOnlyChanged
Fires when the ReadOnly property value is changed.
Properties
AutoCompleteMode
Gets or sets the mode for the automatic completion feature used in the multi-column combo box.
Declaration
[Browsable(true)]
public override AutoCompleteMode AutoCompleteMode { get; set; }
Property Value
Overrides
AutoFilter
Gets or sets a value indicating whether automatic filtering is enabled based on the entered text.
AutoSizeDropDownColumnMode
Gets or sets the mode for automatically sizing columns when AutoSizeDropDownToBestFit is enabled.
Declaration
public virtual BestFitColumnMode AutoSizeDropDownColumnMode { get; set; }
Property Value
AutoSizeDropDownHeight
Determines whether the drop-down height will be auto-sized when filtering is applied.
AutoSizeDropDownToBestFit
Determines whether the drop-down portion of the control will be auto-sized to best fit all columns. The DropDownWidth property must be set to its default value (-1) to allow this setting to work properly.
Declaration
public bool AutoSizeDropDownToBestFit { get; set; }
Property Value
BindingContext
Gets or sets the binding context for the multi-column combo box element.
Declaration
public override BindingContext BindingContext { get; set; }
Property Value
The BindingContext for this element.
Overrides
ClearTextOnValidation
Gets or sets a value indicating whether the text should be cleared when validation fails if the text does not match any entry in the DisplayMember column.
Declaration
[Browsable(true)]
public bool ClearTextOnValidation { get; set; }
Property Value
Columns
Gets a collection that contains the all columns in the MasterGridViewTemplate.
Declaration
[Browsable(false)]
public GridViewColumnCollection Columns { get; }
Property Value
CurrentState
Gets a value from the PopupEditorState enumerator that represents the current state of the MultiColumnComboBox control.
Declaration
public PopupEditorState CurrentState { get; }
Property Value
DataSource
Gets or sets the data source for the multi-column combo box.
Declaration
public override object DataSource { get; set; }
Property Value
The object that serves as the data source.
Overrides
DesiredEvents
Gets the event types that this listener is interested in processing.
Declaration
public GridEventType DesiredEvents { get; }
Property Value
A GridEventType value specifying the events to process.
Implements
DesiredProcessMode
Gets the event processing mode that determines when this listener should be called.
Declaration
public GridEventProcessMode DesiredProcessMode { get; }
Property Value
A GridEventProcessMode value indicating the processing mode.
Implements
DisplayMember
Gets or sets the property name or column name of the data source to display in the combo box text area.
Declaration
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public override string DisplayMember { get; set; }
Property Value
A string specifying the name of the property or column to display.
Overrides
DropDownSizingMode
Gets or sets the drop-down sizing mode that determines how the popup can be resized.
Declaration
[Browsable(true)]
public override SizingMode DropDownSizingMode { get; set; }
Property Value
A SizingMode value that specifies the resizing behavior.
Overrides
EditorControl
The input control hosted in the popup form. In the case of RadMultiColumnComboBoxElement the control is a RadGridView.
FormatInfo
This property is not relevant for this class.
Declaration
[Browsable(false)]
public override IFormatProvider FormatInfo { get; set; }
Property Value
Overrides
FormatString
This property is not relevant for this class.
Declaration
public override string FormatString { get; set; }
Property Value
Overrides
FormattingEnabled
This property is not relevant for this class.
Declaration
public override bool FormattingEnabled { get; set; }
Property Value
Overrides
IndexChanging
Gets a value whether the current row is being changed at the moment.
Declaration
protected override bool IndexChanging { get; set; }
Property Value
Overrides
IntegralHeight
Gets or sets a value indicating whether the dropdown portion of the combo box is resized to avoid showing partial items.
Declaration
public override bool IntegralHeight { get; set; }
Property Value
Overrides
MultiColumnPopupForm
The popup form that hosts the RadGridView.
Declaration
public MultiColumnComboPopupForm MultiColumnPopupForm { get; }
Property Value
NullText
Gets or sets the text that is displayed when the combo box contains a null reference.
Declaration
public string NullText { get; set; }
Property Value
The text to display when the value is null.
Priority
Gets the priority level for this event listener in the processing queue.
Declaration
public EventListenerPriority Priority { get; }
Property Value
An EventListenerPriority value indicating the listener priority.
Implements
ReadOnly
Gets or sets a value indicating whether the control is in read-only mode.
Declaration
[Browsable(true)]
public bool ReadOnly { get; set; }
Property Value
Rows
Gets a collection that contains the all rows in the MasterGridViewTemplate.
Declaration
[Browsable(false)]
public GridViewRowCollection Rows { get; }
Property Value
SelectedIndex
Gets or sets the index of the currently selected item in the multi-column combo box.
Declaration
[Browsable(true)]
public override int SelectedIndex { get; set; }
Property Value
The zero-based index of the currently selected item, or -1 if no item is selected.
Overrides
SelectedItem
Gets or sets the currently selected item in the multi-column combo box.
Declaration
[Browsable(false)]
[Bindable(true)]
public override object SelectedItem { get; set; }
Property Value
The currently selected GridViewRowInfo.
Overrides
SelectedValue
Gets or sets the value of the member property specified by the ValueMember property.
Declaration
[Browsable(false)]
[Bindable(true)]
public override object SelectedValue { get; set; }
Property Value
The value of the member property specified by the ValueMember property.
Overrides
Value
Gets or sets the value of the selected item in the multi-column combo box.
Declaration
public override object Value { get; set; }
Property Value
The value of the selected item.
Overrides
ValueMember
Gets or sets the property name or column name of the data source whose contents you want to bind to the SelectedValue property.
Declaration
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public override string ValueMember { get; set; }
Property Value
A string specifying the name of the property or column to use as the value.
Overrides
Virtualized
This property is not relevant for this class. Virtualization is always disabled for multi-column combo boxes.
Declaration
[Browsable(true)]
public override bool Virtualized { get; set; }
Property Value
Overrides
Methods
AnalyzeQueue(List<GridViewEvent>)
Analyzes the queue of grid view events to determine processing requirements.
Declaration
public bool AnalyzeQueue(List<GridViewEvent> events)
Parameters
events
List<GridViewEvent>
The list of events to analyze.
Returns
true if the events require special processing; otherwise, false.
Implements
ApplyFilter()
Applies filtering to the multi-column combo box based on the current text input and display member.
Declaration
public virtual void ApplyFilter()
BeginEdit()
Begins the edit operation.
Declaration
public override void BeginEdit()
Overrides
BeginUpdate()
Suspends repainting of the multi-column combo box until the EndUpdate() method is called.
Declaration
public override void BeginUpdate()
Overrides
BestFitColumns()
Automatically adjusts the width of all columns based on the content of visible rows.
Declaration
public void BestFitColumns()
BestFitColumns(bool, bool)
Automatically adjusts the width of all columns based on the content, with options for combo box sizing and row iteration.
Declaration
public void BestFitColumns(bool adjustComboBoxSize, bool bestFitAllRows)
Parameters
adjustComboBoxSize
Determines whether to adjust the drop-down size according to the columns width.
bestFitAllRows
Determines whether to calculate the optimal width by iterating all rows, including non-visible rows.
CheckForCompleteMatchAndUpdateText()
Checks for complete match and update text.
Declaration
protected virtual void CheckForCompleteMatchAndUpdateText()
ClearFilter()
Clears all applied filters on the multi-column combo box.
Declaration
public virtual void ClearFilter()
ClearFilterDescriptor(FilterDescriptor)
Clears the filter descriptor.
Declaration
protected virtual void ClearFilterDescriptor(FilterDescriptor descriptor)
Parameters
descriptor
The descriptor.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreatePopupForm()
Creates the popup instance. You have to override this method in order to provide a popup that is specialized by its content. Example: In a combo box you have to override and provide a specialized class that contains and handles the listbox element.
Declaration
protected override RadPopupControlBase CreatePopupForm()
Returns
The popup instance.
Overrides
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
DoScrollLineDown()
Executes scroll line down.
Declaration
protected override void DoScrollLineDown()
Overrides
DoScrollLineUp()
Executes scroll line up.
Declaration
protected override void DoScrollLineUp()
Overrides
EndInit()
Ends the initialization of a RadComboBoxElement control that is used on a form or used by another component. The initialization occurs at run time.
Declaration
public override void EndInit()
Overrides
EndUpdate()
Resumes repainting of the multi-column combo box that was suspended by the BeginUpdate() method.
Declaration
public override void EndUpdate()
Overrides
FindAllItems(string)
Finds all items that start with the specified text.
FindItem(string)
Finds the first item in the combo box that starts with the specified string.
FindItemExact(string)
Finds the first item in the combo box that matches the specified string.
FindItemExact(string, string)
Finds the item exact.
Declaration
protected virtual GridViewRowInfo FindItemExact(string text, string field)
Parameters
text
The text.
field
The field.
Returns
FindItemIndexExact(string)
Finds the index of the item with the specified text. The passed argument is compared with the DisplayMember value for each item in the items collection.
GetActiveItem()
Gets the active item.
GetCurrentRow(bool)
Gets the current row.
Declaration
protected virtual GridViewRowInfo GetCurrentRow(bool getFirstPossibleIfNoCurrentAvailable)
Parameters
getFirstPossibleIfNoCurrentAvailable
The get first possible if no current available.
Returns
GetItemHeight(int)
Retrieves the height of list items in the multi-column combo box.
GetItemText(object)
Gets the text representation of the specified item.
GetPopupSize(RadPopupControlBase, bool)
Gets the display size for the popup.
Declaration
protected override Size GetPopupSize(RadPopupControlBase popup, bool measure)
Parameters
popup
The popup which size should beretrieved.
measure
True to perform explicit measure, false otherwise.
Returns
Overrides
GetText(object)
Gets the text.
Initialize(object)
Initializes the multi-column combo box element with the specified value.
Declaration
public override void Initialize(object value)
Parameters
value
The value to be pre-loaded inside the initialized editor.
Overrides
OnDoubleClick(EventArgs)
Raises the DoubleClick event.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
e
Overrides
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnParentChanged(RadElement)
Notifies for a change in the Parent value.
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
previousParent
The previous parent element (if any)
Overrides
OnPopupClosed(RadPopupClosedEventArgs)
Raises the event.
Declaration
protected override void OnPopupClosed(RadPopupClosedEventArgs e)
Parameters
e
The RadPopupClosedEventArgs instance containing the event data.
Overrides
OnPopupOpening(CancelEventArgs)
Raises the event.
Declaration
protected override void OnPopupOpening(CancelEventArgs e)
Parameters
e
The CancelEventArgs instance containing the event data.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
OnReadOnlyChanged()
Declaration
protected virtual void OnReadOnlyChanged()
PostProcessEvent(GridViewEvent)
Allows additional processing of a grid view event that has been dispatched.
Declaration
public GridViewEventResult PostProcessEvent(GridViewEvent eventData)
Parameters
eventData
The event data that was processed.
Returns
A GridViewEventResult indicating how the event should be handled.
Implements
PreProcessEvent(GridViewEvent)
Allows previewing of a grid view event that is about to be dispatched.
Declaration
public GridViewEventResult PreProcessEvent(GridViewEvent eventData)
Parameters
eventData
The event data to be processed.
Returns
A GridViewEventResult indicating how the event should be handled.
Implements
ProcessDeleteKey(KeyEventArgs)
Processes the delete key.
Declaration
protected override void ProcessDeleteKey(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Overrides
ProcessEscKey(KeyEventArgs)
Processes the Escape key to cancel filtering or close the popup.
Declaration
public override bool ProcessEscKey(KeyEventArgs e)
Parameters
e
A KeyEventArgs that contains the event data.
Returns
true if the event was processed; otherwise, false.
Overrides
ProcessEvent(GridViewEvent)
Core entry point for receiving and processing a grid view event.
Declaration
public GridViewEventResult ProcessEvent(GridViewEvent eventData)
Parameters
eventData
The event data to be processed.
Returns
A GridViewEventResult indicating how the event should be handled.
Implements
ProcessFilterDescriptor(FilterDescriptor, string)
Processes the filter descriptor.
Declaration
protected virtual void ProcessFilterDescriptor(FilterDescriptor descriptor, string textToSearch)
Parameters
descriptor
The descriptor.
textToSearch
The text to search.
ProcessKeyDown(object, KeyEventArgs)
Processes the key down.
Declaration
protected override void ProcessKeyDown(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
The KeyEventArgs instance containing the event data.
Overrides
ProcessPageUpDownKeys(KeyEventArgs)
Processes the page up down keys.
Declaration
protected override void ProcessPageUpDownKeys(KeyEventArgs e)
Parameters
e
The KeyEventArgs instance containing the event data.
Overrides
ProcessReturnKey(KeyEventArgs)
Processes the Enter key
Declaration
public override void ProcessReturnKey(KeyEventArgs e)
Parameters
e
An instance of KeyEventArgs
Overrides
ProcessTextChanged(object, EventArgs)
Processes the text changed.
ProcessTextKeyUp(object, KeyEventArgs)
Processes the text key up.
Declaration
protected override void ProcessTextKeyUp(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
The KeyEventArgs instance containing the event data.
Overrides
ScrollItemIntoView(object)
Scrolls the item into view.
Declaration
protected override void ScrollItemIntoView(object item)
Parameters
item
The item.
Overrides
ScrollToHome()
Scrolls to home.
Declaration
protected override void ScrollToHome()
Overrides
SelectFirstRow()
Selects the first row.
Declaration
protected virtual void SelectFirstRow()
SelectNextItem()
Selects the next item.
Declaration
protected override void SelectNextItem()
Overrides
SelectPreviousItem()
Selects the previous item.
Declaration
protected override void SelectPreviousItem()
Overrides
SetActiveItem(object)
Sets the active item.
Declaration
protected override void SetActiveItem(object item)
Parameters
item
The item.
Overrides
SetActiveItem(string)
Sets the active item.
Declaration
protected override void SetActiveItem(string text)
Parameters
text
The text.
Overrides
SetAppendAutoComplete(KeyPressEventArgs)
Sets the append auto complete.
Declaration
protected override void SetAppendAutoComplete(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs instance containing the event data.
Overrides
SetCurrentRowOnReturnOrTabKey(KeyEventArgs)
Declaration
protected virtual void SetCurrentRowOnReturnOrTabKey(KeyEventArgs e)
Parameters
e
SetEditorControlBindingContext()
Declaration
protected virtual void SetEditorControlBindingContext()
TextBox_TextChanging(object, TextChangingEventArgs)
Declaration
protected override void TextBox_TextChanging(object sender, TextChangingEventArgs e)
Parameters
sender
e
Overrides
UnwirePopupFormEvents(RadPopupControlBase)
Unwires the popup form events.
Declaration
protected override void UnwirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
The popup.
Overrides
WirePopupFormEvents(RadPopupControlBase)
Wires the popup form events.
Declaration
protected override void WirePopupFormEvents(RadPopupControlBase popup)
Parameters
popup
The popup.
Overrides