New to Telerik UI for WPFStart a free 30-day trial

Represents a class that synchronizes selection between RadMultiColumnComboBox and another control.

Definition

Namespace:Telerik.Windows.Controls.MultiColumnComboBox

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class SelectionBridge : ISelectionBridge

Inheritance: objectSelectionBridge

Implements: ISelectionBridge

Constructors

Initializes a new instance of the SelectionBridge class.

C#
public SelectionBridge(RadMultiColumnComboBox owner)
Parameters:ownerRadMultiColumnComboBox

Properties

Gets the collection view that is associated with the selection bridge.

C#
protected QueryableCollectionView CollectionView { get; }

Gets or sets a boolean value indicating that the selection is being changed from code.

C#
protected bool IsSelectionChangeInPlace { get; set; }

Gets the RadMultiColumnComboBox that is associated with the selection bridge.

C#
public RadMultiColumnComboBox Owner { get; }

Implements: ISelectionBridge.Owner

Methods

Clean event subscriptions and other used resources.

C#
public virtual void CleanUp()

Clears the selection in RadMultiColumnComboBox.

C#
public void ClearOwnerSelection()

Implements: ISelectionBridge.ClearOwnerSelection()

Clears the selection in source element.

C#
public virtual void ClearSourceSelection()

Implements: ISelectionBridge.ClearSourceSelection()

Initializes CollectionView instance, associated with SelectionBridge.

C#
public void InitializeCollectionView(QueryableCollectionView sourceCollectionView)
Parameters:sourceCollectionViewQueryableCollectionView

Implements: ISelectionBridge.InitializeCollectionView(QueryableCollectionView)

Invoked when an item is deselected from RadMultiColumnComboBox.

C#
public virtual void ItemsDeselectedInOwner(IEnumerable<object> removedItems, bool raiseEvent = true)
Parameters:removedItemsIEnumerable<object>raiseEventbool

Implements: ISelectionBridge.ItemsDeselectedInOwner(IEnumerable<object>, bool)

Invoked when an item is deselected from the selection source.

C#
public void ItemsDeselectedInSource(IEnumerable<object> removedItems, bool raiseEvent = true)
Parameters:removedItemsIEnumerable<object>raiseEventbool

Implements: ISelectionBridge.ItemsDeselectedInSource(IEnumerable<object>, bool)

Invoked when an item is selected in RadMultiColumnComboBox.

C#
public virtual void ItemsSelectedInOwner(IEnumerable<object> addedItems, bool raiseEvent = true)
Parameters:addedItemsIEnumerable<object>raiseEventbool

Implements: ISelectionBridge.ItemsSelectedInOwner(IEnumerable<object>, bool)

Invoked when an item is selected in the selection source.

C#
public void ItemsSelectedInSource(IEnumerable<object> addedItems, bool raiseEvent = true)
Parameters:addedItemsIEnumerable<object>raiseEventbool

Implements: ISelectionBridge.ItemsSelectedInSource(IEnumerable<object>, bool)

Invoked when SelectedItems.Reset occurs in RadMultiColumnComboBox.

C#
public virtual void SelectedItemsResetInOwner()

Implements: ISelectionBridge.SelectedItemsResetInOwner()

Propagates source's CurrentItem to RadMultiColumnComboBox selection.

C#
public virtual bool SynchronizeCurrentItemWithSelection()
Returns:

bool

Implements: ISelectionBridge.SynchronizeCurrentItemWithSelection()

Synchronizes cached selected items back to the source selection.

C#
public virtual void SynchronizeSelectedItemsWithSource()

Implements: ISelectionBridge.SynchronizeSelectedItemsWithSource()

Unsubscribes selection bridge from source's selection events.

C#
public virtual void UnsubscribeFromSourceEvents()

Implements: ISelectionBridge.UnsubscribeFromSourceEvents()